Skip to content

Commit

Permalink
Trying suggested pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Mar 19, 2024
1 parent f633b26 commit f9ea339
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/check-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ jobs:
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git diff
git diff | reviewdog -f=diff -f.diff.strip=0 -reporter=github-pr-review -tee -fail-on-error=true
TMPFILE=$(mktemp)
git diff >"${TMPFILE}"
git stash -u && git stash drop
reviewdog -f=diff -f.diff.strip=1 -reporter=github-pr-review -tee < "${TMPFILE}"
- name: version is incorrect, reporting
if: ${{ steps.version_test.outputs.status }} == "notok"
run: |
Expand Down

0 comments on commit f9ea339

Please sign in to comment.