Skip to content

Commit c36a9c8

Browse files
Copilotpetesramek
andauthored
fix: swap lock/unlock order in backtrack workflow
Agent-Logs-Url: https://github.com/petesramek/polyline-algorithm-csharp/sessions/46a3d0dc-cb13-4a78-bcfd-c6565b325c31 Co-authored-by: petesramek <2333452+petesramek@users.noreply.github.com>
1 parent 4f96217 commit c36a9c8

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/backtrack.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ jobs:
6161
echo "::warning::Develop branch '${{ steps.targets.outputs.develop-branch }}' not found, skipping backtrack."
6262
fi
6363
64-
- name: 'Lock develop branch'
65-
id: lock-develop
64+
- name: 'Unlock develop branch'
65+
id: unlock-develop
6666
if: ${{ steps.check-develop.outputs.exists == 'true' }}
67-
uses: './.github/actions/github/branch-protection/lock'
67+
uses: './.github/actions/github/branch-protection/unlock'
6868
with:
6969
branch: ${{ steps.targets.outputs.develop-branch }}
7070
token: ${{ secrets.GH_ADMIN_TOKEN }}
@@ -85,9 +85,9 @@ jobs:
8585
git merge --no-ff origin/${{ steps.targets.outputs.merge-source }} -m "Backtrack: merge ${{ steps.targets.outputs.merge-source }} into ${{ steps.targets.outputs.develop-branch }}"
8686
git push origin ${{ steps.targets.outputs.develop-branch }}
8787
88-
- name: 'Unlock develop branch'
89-
if: ${{ always() && steps.lock-develop.outcome != 'skipped' }}
90-
uses: './.github/actions/github/branch-protection/unlock'
88+
- name: 'Lock develop branch'
89+
if: ${{ always() && steps.unlock-develop.outcome != 'skipped' }}
90+
uses: './.github/actions/github/branch-protection/lock'
9191
with:
9292
branch: ${{ steps.targets.outputs.develop-branch }}
9393
token: ${{ secrets.GH_ADMIN_TOKEN }}

0 commit comments

Comments
 (0)