Skip to content

Commit

Permalink
fix optinoal condition
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaensel committed Nov 28, 2024
1 parent 922ce49 commit ecfad6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
continue-on-error: ${{ matrix.os == 'nightly' || matrix.os == 'pre' }}
continue-on-error: ${{ matrix.version == 'nightly' || matrix.version == 'pre' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -34,8 +34,8 @@ jobs:
- name: Handle optional failures
if: ${{ failure() }}
run: |
if [[ "${{ matrix.os }}" == "nightly" || "${{ matrix.os }}" == "pre" ]]; then
echo "::warning::Optional matrix job failed for ${{ matrix.os }}."
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
Expand Down

0 comments on commit ecfad6d

Please sign in to comment.