Skip to content

Commit a9a761c

Browse files
committed
ci: allow release branch to be protected.
The deploy key can be added to the bypass list for branch protection, allowing the release branch to be protected from pushes from regular users. Based on: https://github.com/orgs/community/discussions/25305#discussioncomment-10728028
1 parent 5a9dd91 commit a9a761c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/update-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
17+
ssh-key: ${{ secrets.DEPLOY_KEY }}
1718
- name: Update release branch
1819
run: |
1920
git push origin ${{ github.ref_name }}:release

0 commit comments

Comments
 (0)