Skip to content

Commit

Permalink
Do not consider skipped as a failure (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet authored Oct 15, 2024
1 parent 33cd91b commit 7e66d9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upload_final_status/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ runs:
echo "TEMP=$TEMP" >> $GITHUB_OUTPUT
- name: write failed result
shell: bash
if: ${{ contains(inputs.JOBS_RESULTS, 'failure') || contains(inputs.JOBS_RESULTS, 'cancelled') || contains(inputs.JOBS_RESULTS, 'skipped') }}
if: ${{ contains(inputs.JOBS_RESULTS, 'failure') || contains(inputs.JOBS_RESULTS, 'cancelled') }}
run: |
echo -n "FAILED" > ${{ steps.temp-dir.outputs.TEMP }}/.final_status
- name: write successful result
shell: bash
if: ${{ !contains(inputs.JOBS_RESULTS, 'failure') && !contains(inputs.JOBS_RESULTS, 'cancelled') && !contains(inputs.JOBS_RESULTS, 'skipped') }}
if: ${{ !contains(inputs.JOBS_RESULTS, 'failure') && !contains(inputs.JOBS_RESULTS, 'cancelled') }}
run: |
echo -n "SUCCESSFUL" > ${{ steps.temp-dir.outputs.TEMP }}/.final_status
- name: upload file to artifacts
Expand Down

0 comments on commit 7e66d9f

Please sign in to comment.