Skip to content

Commit

Permalink
ci/screenshots: do not comment on commits to other branches
Browse files Browse the repository at this point in the history
This assumption is only valid for those stable branches! For new pull request branches, these comments are considered helpful indeed.
  • Loading branch information
LinqLover authored Dec 28, 2023
1 parent 4bf73a1 commit 54c4fca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 54c4fca

Please sign in to comment.