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 61ccdeb commit ae0d4fb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/merge-acm-flow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,7 @@ jobs:
run: |
if [ "${{ steps.create-pr.outcome }}" != "success" ]; then
echo "${{ steps.create-pr.outcome }}"
PR_NUMBER=$(gh pr list --json number --jq '.[0].number' --repo ${{ inputs.downstream }} --state open --head automated-updates-acm-${{ inputs.downstream-branch }})
if [ ! -z "$PR_NUMBER" ]; then
echo "pr_exists=1" >> $GITHUB_OUTPUT
else
echo "pr_exists=0" >> $GITHUB_OUTPUT
fi
gh pr list --json number --jq '.[0].number' --repo ${{ inputs.downstream }} --state open --head automated-updates-acm-${{ inputs.downstream-branch }}
fi
- name: Compose slack message body
if: github.event_name != 'pull_request' && (success() || steps.fork-sync.outputs.status == 'uptodate' || steps.fork-sync.outputs.status == 'ahead' || env.pr_exists == '1' )
Expand Down

0 comments on commit ae0d4fb

Please sign in to comment.