Skip to content

Commit

Permalink
test pr exists
Browse files Browse the repository at this point in the history
Signed-off-by: Coleen Iona Quadros <[email protected]>
  • Loading branch information
coleenquadros committed Jul 19, 2024
1 parent af2d14d commit 98f36fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/merge-acm-flow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,12 @@ jobs:
push-to-fork: ${{ inputs.sandbox }}
push-to-fork-token: ${{ steps.cloner.outputs.token }}
- name: Check if PR exists using gh cli
if: github.event_name != 'pull_request' && steps.create-pr.outcome != 'success'
if: always()
id: pr-exists
env:
GH_TOKEN: ${{ steps.pr.outputs.token }}
run: |
echo ${{ steps.create-pr.outcome }}
gh pr view --json number --jq '.number' --repo ${{ inputs.downstream }} --state open --head automated-updates-acm-${{ inputs.downstream-branch }}
if [ $? -eq 0 ]; then
echo "pr_exists=1" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 98f36fc

Please sign in to comment.