Skip to content

Commit

Permalink
ci: fix CI on main branch
Browse files Browse the repository at this point in the history
The “Comment PR” step of the test job is executed only when it is not on the main branch, and only the job summary is created when it is on the main branch.
  • Loading branch information
kkebo committed Oct 12, 2024
1 parent 7aff4b8 commit 798b018
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
SUMMARY: ${{ steps.summary.outputs.SUMMARY }}
run: echo "$SUMMARY" >> "$GITHUB_STEP_SUMMARY"
- name: Comment PR
if: ${{ github.ref != 'refs/heads/main' }}
uses: thollander/actions-comment-pull-request@v3
with:
message: ${{ steps.summary.outputs.SUMMARY }}
Expand Down

0 comments on commit 798b018

Please sign in to comment.