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 <coleen.quadros27@gmail.com>
  • Loading branch information
coleenquadros committed Jul 19, 2024
1 parent 98f36fc commit 39a1247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/merge-acm-flow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,13 @@ jobs:
push-to-fork: ${{ inputs.sandbox }}
push-to-fork-token: ${{ steps.cloner.outputs.token }}
- name: Check if PR exists using gh cli
if: always()
if: github.event_name != 'pull_request' && ${{ steps.create-pr.outcome }} != 'success'
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 }}
gh pr list --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
else
Expand Down

0 comments on commit 39a1247

Please sign in to comment.