Skip to content

Commit

Permalink
Merge pull request #12324 from simondeziel/differential-shellcheck
Browse files Browse the repository at this point in the history
github: only try to upload differential shellcheck result if it ran
  • Loading branch information
tomponline authored Sep 27, 2023
2 parents 0ccf5f2 + 1c111bb commit eb5f174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
if: github.event_name == 'pull_request'

- if: ${{ always() }}
name: Upload artifact with ShellCheck defects in SARIF format
- name: Upload artifact with ShellCheck defects in SARIF format
uses: actions/upload-artifact@v3
with:
name: Differential ShellCheck SARIF
path: ${{ steps.ShellCheck.outputs.sarif }}
if: github.event_name == 'pull_request'

- name: Install Go
uses: actions/setup-go@v4
Expand Down

0 comments on commit eb5f174

Please sign in to comment.