Skip to content

Commit

Permalink
allow for failure of pre and nightly with total success and green che…
Browse files Browse the repository at this point in the history
…ckmark
  • Loading branch information
hhaensel committed Nov 28, 2024
1 parent 7c93c33 commit c33f955
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ jobs:
arch: ${{ matrix.arch }}
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
- name: Handle optional failures and continue without failing the workflow
if: ${{ failure() }}
run: |
if [[ "${{ matrix.version }}" == "nightly" || "${{ matrix.version }}" == "pre" ]]; then
echo "::warning::Optional matrix job failed for ${{ matrix.version }}."
echo "optional_fail=true" >> "${GITHUB_OUTPUT}"
exit 0 # Ignore the error to keep the green checkmark going
fi
exit 1 # If it's not an optional job, fail the job
build:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit c33f955

Please sign in to comment.