Skip to content

Commit

Permalink
ci: diffがなければコメントせず正常終了
Browse files Browse the repository at this point in the history
  • Loading branch information
mikutas committed Aug 10, 2023
1 parent 1623fe3 commit 2c8b7f6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@ jobs:
- run: |
helmfile -f helmfile.yaml template --selector name=$NAME > /tmp/main.yaml
- run: |
diff /tmp/main.yaml /tmp/pr.yaml --color > diff.yaml
- run: |
NUMBER=$(echo $GITHUB_REF | sed -e 's/[^0-9]//g')
gh pr comment $NUMBER --body-file diff.yaml
diff /tmp/main.yaml /tmp/pr.yaml --color | gh pr comment $NUMBER --body|| true
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit 2c8b7f6

Please sign in to comment.