Skip to content

Commit

Permalink
chore: ensure unicity of job name (#4284)
Browse files Browse the repository at this point in the history
otherwise, statuscheck might get confused

https://coveord.atlassian.net/browse/KIT-3469
  • Loading branch information
louis-bompart authored Aug 22, 2024
1 parent 8b5dd42 commit 7508e78
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/prbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ jobs:
SFDX_AUTH_CLIENT_ID: ${{ secrets.SFDX_AUTH_CLIENT_ID }}
SFDX_AUTH_JWT_KEY: ${{ secrets.SFDX_AUTH_JWT_KEY }}
is-valid-pr:
name: 'Confirm build is valid'
name: 'Confirm build is valid (PR)'
if: ${{ always() && github.event_name == 'pull_request'}}
needs:
- 'build'
Expand Down Expand Up @@ -363,7 +363,7 @@ jobs:
exit 1
fi
is-valid-merge-queue:
name: 'Confirm build is valid'
name: 'Confirm build is valid (merge group)'
if: ${{ always() && github.event_name == 'merge_group'}}
needs:
- 'build'
Expand Down Expand Up @@ -395,3 +395,20 @@ jobs:
echo "Build is invalid"
exit 1
fi
is-valid:
name: 'Confirm build is valid'
if: ${{ always() }}
needs:
- 'is-valid-pr'
- 'is-valid-merge-queue'
runs-on: ubuntu-latest
steps:
- run: |
success="${{ contains(needs.*.result, 'success')}}"
if [[ $success == "true" ]]; then
echo "Build is valid"
exit 0
else
echo "Build is invalid"
exit 1
fi

0 comments on commit 7508e78

Please sign in to comment.