Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMustermann2 committed Nov 21, 2024
1 parent f41cee7 commit daa5a74
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/compare-layouts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
env:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
# Log the workflow trigger details for debugging.
Expand Down Expand Up @@ -132,7 +133,12 @@ jobs:
# Even if this fails, the CI status should be updated.
continue-on-error: true
- name: Comment or update CI Status
if: ${{ github.event.workflow_run.event == 'pull_request' }}
# Only update the status if
# 1. The workflow run was triggered by a pull request
# 2. The triggering workflow run was successful
# We skip the case wherein the triggering workflow failed because
# it was already handled by the "Post CI Status" step.
if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }}
uses: ./.github/actions/composite-action-pr-status-comment
with:
workflow-conclusion: ${{ steps.compare_layouts.outcome == 'success' && 'success' || 'failure' }}
Expand Down

0 comments on commit daa5a74

Please sign in to comment.