From 798b01815ddde1294032b6f177f2b9f455fecf71 Mon Sep 17 00:00:00 2001 From: Kenta Kubo <601636+kkebo@users.noreply.github.com> Date: Sat, 12 Oct 2024 12:16:47 +0900 Subject: [PATCH] ci: fix CI on main branch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .github/workflows/swift.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 6290af9..dda199a 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -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 }}