Skip to content

Commit

Permalink
Run jobs one-by-one so that cache is properly leveraged
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari committed Jan 2, 2024
1 parent 73a6e2c commit da29ecd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci-owasp-dependency-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
timeout-minutes: 45
strategy:
fail-fast: false
max-parallel: 1
matrix:
include:
- branch: master
Expand Down Expand Up @@ -95,11 +96,11 @@ jobs:
enableCrossOsArchive: true

- name: Update OWASP Dependency Check data
if: ${{ steps.restore-owasp-dependency-check-data.outputs.cache-hit != 'true' }}
if: ${{ steps.restore-owasp-dependency-check-data.outputs.cache-hit != 'true' && matrix.branch == 'master' }}
run: mvn -B -ntp -Powasp-dependency-check initialize -pl . dependency-check:update-only

- name: Save OWASP Dependency Check data
if: ${{ steps.restore-owasp-dependency-check-data.outputs.cache-hit != 'true' }}
if: ${{ steps.restore-owasp-dependency-check-data.outputs.cache-hit != 'true' && matrix.branch == 'master' }}
uses: actions/cache/save@v3
timeout-minutes: 5
with:
Expand Down

0 comments on commit da29ecd

Please sign in to comment.