|
69 | 69 | token: ${{ secrets.GH_ADMIN_TOKEN }} |
70 | 70 | lock-branch: 'true' |
71 | 71 |
|
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 | | - |
90 | 72 | - name: 'Backtrack: merge ${{ github.base_ref }} into ${{ steps.targets.outputs.preview-branch }}' |
91 | 73 | if: ${{ steps.targets.outputs.preview-branch != '' }} |
92 | 74 | env: |
@@ -115,22 +97,6 @@ jobs: |
115 | 97 | token: ${{ secrets.GH_ADMIN_TOKEN }} |
116 | 98 | lock-branch: 'false' |
117 | 99 |
|
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 | | - |
134 | 100 | - name: 'Write backtrack summary' |
135 | 101 | if: ${{ always() }} |
136 | 102 | run: | |
|
0 commit comments