Skip to content

Commit 543938d

Browse files
Copilotpetesramek
andauthored
Remove redundant branch protection lock on support branch creation (#218)
Support branches created during release are explicitly locked via the `branch-protection/lock` action, but this is unnecessary — the repo already has a `support/**` glob pattern branch protection rule that applies automatically to any newly pushed branch matching that pattern. ## Changes - **`release.yml`**: Removed the `Lock support branch` step from the `create-support-branch` job - **`release.yml`**: Updated the step summary message from "Created and locked" to "Created" Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: petesramek <2333452+petesramek@users.noreply.github.com>
1 parent e98b8d1 commit 543938d

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -371,17 +371,10 @@ jobs:
371371
git checkout -b "${{ steps.resolve-support-branch.outputs.support-branch }}"
372372
git push --set-upstream origin "${{ steps.resolve-support-branch.outputs.support-branch }}"
373373
374-
- name: 'Lock support branch'
375-
if: ${{ steps.check-support-branch.outputs.support-branch-exists == 'false' }}
376-
uses: './.github/actions/github/branch-protection/lock'
377-
with:
378-
branch: ${{ steps.resolve-support-branch.outputs.support-branch }}
379-
token: ${{ secrets.GH_ADMIN_TOKEN }}
380-
381374
- name: 'Write support branch summary'
382375
run: |
383376
if [[ "${{ steps.check-support-branch.outputs.support-branch-exists }}" == "false" ]]; then
384-
echo "✅ Created and locked support branch **${{ steps.resolve-support-branch.outputs.support-branch }}**." >> $GITHUB_STEP_SUMMARY
377+
echo "✅ Created support branch **${{ steps.resolve-support-branch.outputs.support-branch }}**." >> $GITHUB_STEP_SUMMARY
385378
else
386379
echo "⏭️ Support branch **${{ steps.resolve-support-branch.outputs.support-branch }}** already exists." >> $GITHUB_STEP_SUMMARY
387380
fi

0 commit comments

Comments
 (0)