We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d95c62d commit 34bb270Copy full SHA for 34bb270
.github/workflows/promote-branch.yml
@@ -171,6 +171,13 @@ jobs:
171
echo "Default branch is '${{ env.base-branch }}'"
172
echo "Current branch is '${{ env.current-branch }}'"
173
exit 1
174
+ - name: 'Validate target and current branch'
175
+ if: ${{ env.target-branch == env.current-branch }}
176
+ run: |
177
+ echo "Default and target branch cannot be the same."
178
+ echo "Default branch is '${{ env.target-branch }}'"
179
+ echo "Current branch is '${{ env.current-branch }}'"
180
+ exit 1
181
- name: 'Validate pull request'
182
if: ${{ env.pull-request-exists == 'true' }}
183
run: |
0 commit comments