Skip to content

Commit c81409e

Browse files
Copilotpetesramek
andauthored
Restore 'Validate pull request' step in validate-promotion job
Agent-Logs-Url: https://github.com/petesramek/polyline-algorithm-csharp/sessions/8f63396e-12ed-4827-aa8c-5e4b9661cee9 Co-authored-by: petesramek <2333452+petesramek@users.noreply.github.com>
1 parent 810dd1d commit c81409e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/promote-branch.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,12 @@ jobs:
186186
echo "Current branch is '${{ env.current-branch }}'"
187187
exit 1
188188
189+
- name: 'Validate pull request'
190+
if: ${{ env.pull-request-exists == 'true' }}
191+
run: |
192+
echo "Pull request exists."
193+
exit 1
194+
189195
promote-branch:
190196
name: 'Promote branch ${{ github.ref_name }} to ${{ needs.workflow-variables.outputs.target-branch }}'
191197
needs: [ workflow-variables, validate-promotion ]

0 commit comments

Comments
 (0)