Skip to content

Commit

Permalink
.github/workflows: ignore return code
Browse files Browse the repository at this point in the history
  • Loading branch information
uhthomas committed Jun 1, 2023
1 parent 8467a38 commit 7a39c0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/k8s-diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const { exitCode, stdout } = exec.getExecOutput('diff', ['-urN', 'base', 'head'])
const { exitCode, stdout } = exec.getExecOutput('diff', ['-urN', 'base', 'head'], {
ignoreReturnCode: true
})
if (exitCode === 0) {
core.warning(`diff returned 0, stdout: ${stdout}`)
Expand Down

0 comments on commit 7a39c0c

Please sign in to comment.