Skip to content

Commit 34bb270

Browse files
committed
ashddusa
1 parent d95c62d commit 34bb270

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/promote-branch.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ jobs:
171171
echo "Default branch is '${{ env.base-branch }}'"
172172
echo "Current branch is '${{ env.current-branch }}'"
173173
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
174181
- name: 'Validate pull request'
175182
if: ${{ env.pull-request-exists == 'true' }}
176183
run: |

0 commit comments

Comments
 (0)