Skip to content

Commit fa8cf1d

Browse files
Copilotpetesramek
andauthored
fix: backtrack workflow - only lock source branch, not merge targets
Agent-Logs-Url: https://github.com/petesramek/polyline-algorithm-csharp/sessions/ad3c6a94-dc51-4ac7-996b-a56f710a69c7 Co-authored-by: petesramek <2333452+petesramek@users.noreply.github.com>
1 parent 3909e6c commit fa8cf1d

1 file changed

Lines changed: 0 additions & 34 deletions

File tree

.github/workflows/backtrack.yml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -69,24 +69,6 @@ jobs:
6969
token: ${{ secrets.GH_ADMIN_TOKEN }}
7070
lock-branch: 'true'
7171

72-
- name: 'Lock preview branch'
73-
id: lock-preview
74-
if: ${{ steps.targets.outputs.preview-branch != '' }}
75-
uses: './.github/actions/github/branch-protection/lock'
76-
with:
77-
branch: ${{ steps.targets.outputs.preview-branch }}
78-
token: ${{ secrets.GH_ADMIN_TOKEN }}
79-
lock-branch: 'true'
80-
81-
- name: 'Lock develop branch'
82-
id: lock-develop
83-
if: ${{ steps.check-develop.outputs.exists == 'true' }}
84-
uses: './.github/actions/github/branch-protection/lock'
85-
with:
86-
branch: ${{ steps.targets.outputs.develop-branch }}
87-
token: ${{ secrets.GH_ADMIN_TOKEN }}
88-
lock-branch: 'true'
89-
9072
- name: 'Backtrack: merge ${{ github.base_ref }} into ${{ steps.targets.outputs.preview-branch }}'
9173
if: ${{ steps.targets.outputs.preview-branch != '' }}
9274
env:
@@ -115,22 +97,6 @@ jobs:
11597
token: ${{ secrets.GH_ADMIN_TOKEN }}
11698
lock-branch: 'false'
11799

118-
- name: 'Restore protection: preview branch'
119-
if: ${{ always() && steps.lock-preview.outcome == 'success' }}
120-
uses: './.github/actions/github/branch-protection/lock'
121-
with:
122-
branch: ${{ steps.targets.outputs.preview-branch }}
123-
token: ${{ secrets.GH_ADMIN_TOKEN }}
124-
lock-branch: 'false'
125-
126-
- name: 'Restore protection: develop branch'
127-
if: ${{ always() && steps.lock-develop.outcome == 'success' }}
128-
uses: './.github/actions/github/branch-protection/lock'
129-
with:
130-
branch: ${{ steps.targets.outputs.develop-branch }}
131-
token: ${{ secrets.GH_ADMIN_TOKEN }}
132-
lock-branch: 'false'
133-
134100
- name: 'Write backtrack summary'
135101
if: ${{ always() }}
136102
run: |

0 commit comments

Comments
 (0)