From 54c4fcab4c1c2ad06611863121a8c4df51013936 Mon Sep 17 00:00:00 2001 From: Christoph Thiede <38782922+LinqLover@users.noreply.github.com> Date: Thu, 28 Dec 2023 21:27:37 +0100 Subject: [PATCH] ci/screenshots: do not comment on commits to other branches This assumption is only valid for those stable branches! For new pull request branches, these comments are considered helpful indeed. --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b2d9a9c8..99311576 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,14 +65,14 @@ jobs: message: "Update screenshots/help for ${{ github.sha }}" push: ${{ github.ref == 'refs/heads/main' }} - uses: actions/setup-node@v3 - if: ${{ steps.commit.outputs.committed == 'true' }} # only required for commit comment below + if: ${{ steps.commit.outputs.pushed == 'true' }} # only required for commit comment below with: node-version: 16 - run: | npm install -g nodegit@v0.28.0-alpha.18 # https://github.com/nodegit/nodegit/issues/1840 npm link nodegit - if: ${{ steps.commit.outputs.committed == 'true' }} # only required for commit comment below - - if: ${{ steps.commit.outputs.committed == 'true' }} # no changes -> no commit -> no comment + if: ${{ steps.commit.outputs.pushed == 'true' }} # only required for commit comment below + - if: ${{ steps.commit.outputs.pushed == 'true' }} # no changes -> no commit -> no comment name: Create commit comment for screenshot/help diff uses: actions/github-script@v6 with: