Skip to content

Commit

Permalink
fix(pull_request.yml): update conditions for success and failure step…
Browse files Browse the repository at this point in the history
…s to depend on the build job result for better accuracy in auto merge logic (#25)
  • Loading branch information
codemile authored Aug 20, 2024
1 parent f1a5d1a commit c26c9ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
if: ${{ always() }}
steps:
- name: "✅ Success"
if: ${{ success() }}
if: ${{ needs.build.result == 'success' }}
run: echo "::notice title={Success}::This step triggers auto merge if all dependencies are met."

- name: "❌ Failure"
if: ${{ failure() }}
if: ${{ needs.build.result != 'success' }}
run: |
echo "::error title={Failure}::This step stops the auto merge process."
exit 1
Expand Down

0 comments on commit c26c9ca

Please sign in to comment.