GitHub: Admin Repositories Settings #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Admin: Update GitHub Repositories Settings' | |
on: | |
workflow_dispatch: | |
# Special permissions required for OIDC authentication | |
permissions: | |
id-token: write | |
contents: read | |
actions: read | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
jobs: | |
admin-update-repo-settings: | |
name: 'GitHub: Update Repo Settings' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref_name }} | |
- name: Update Repository Settings | |
run: | | |
bash ./admin/update_repo_settings.sh \ | |
-e ${{ github.ref_name }} | |
echo "::notice::Release Published" |