Skip to content

Commit

Permalink
Merge pull request #82 from scality/fix_github_job_status
Browse files Browse the repository at this point in the history
Fix the workflow status check
  • Loading branch information
Alexandre Lavigne authored Jun 8, 2023
2 parents 6123fe9 + 07b413c commit b98d093
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, 'failed') || contains(inputs.JOBS_RESULTS, 'cancelled') || contains(inputs.JOBS_RESULTS, 'skipped') }}
if: ${{ contains(inputs.JOBS_RESULTS, 'failure') || contains(inputs.JOBS_RESULTS, 'cancelled') || contains(inputs.JOBS_RESULTS, 'skipped') }}
run: |
echo -n "FAILED" > ${{ steps.temp-dir.outputs.TEMP }}/.final_status
- name: write successful result
shell: bash
if: ${{ !contains(inputs.JOBS_RESULTS, 'failed') && !contains(inputs.JOBS_RESULTS, 'cancelled') && !contains(inputs.JOBS_RESULTS, 'skipped') }}
if: ${{ !contains(inputs.JOBS_RESULTS, 'failure') && !contains(inputs.JOBS_RESULTS, 'cancelled') && !contains(inputs.JOBS_RESULTS, 'skipped') }}
run: |
echo -n "SUCCESSFUL" > ${{ steps.temp-dir.outputs.TEMP }}/.final_status
- name: upload file to artifacts
Expand Down

0 comments on commit b98d093

Please sign in to comment.