Skip to content

Commit

Permalink
continue to scan if a single containerbuild failed
Browse files Browse the repository at this point in the history
  • Loading branch information
P4sca1 committed Oct 8, 2024
1 parent 66334c4 commit d0cf1ac
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,19 @@ jobs:
python-version: ["3.10", "3.11", "3.12"]

runs-on: ubuntu-latest


# Execute after containerbuild, but allow the containerbuild jobs to have failed.
# That way we do not skip scanning, when a single containerbuild job failed.
needs: containerbuild
if: ${{ always() }}

steps:
- name: Ensure containerbuild succeeded
if: needs.containerbuild.result != 'success'
run: |
echo "containerbuild for python-${{ matrix.python-version }} failed or was cancelled"
exit 1
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
Expand Down

0 comments on commit d0cf1ac

Please sign in to comment.