fix(ci): populate cache when it expired #302
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: nix build | |
on: | |
- push | |
- pull_request | |
jobs: | |
tools_changed: | |
continue-on-error: true | |
runs-on: ubuntu-22.04 | |
outputs: | |
should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
steps: | |
- id: skip_check | |
uses: fkirc/[email protected] | |
with: | |
concurrent_skipping: "never" | |
skip_after_successful_duplicate: "true" | |
paths: '["code/**"]' | |
do_not_skip: '["push", "workflow_dispatch", "schedule"]' | |
check_nix: | |
name: Check nix build | |
needs: tools_changed | |
if: ${{ needs.tools_changed.outputs.should_skip != 'true' }} | |
uses: ./.github/workflows/call-nix.yml | |
check-advisories: | |
name: Invoke check-advisories workflow | |
if: ${{ needs.tools_changed.outputs.should_skip != 'true' }} | |
needs: check_nix | |
uses: ./.github/workflows/call-check-advisories.yml | |
with: | |
fetch-key: hsec-tools-${{ github.sha }} | |
is-artifact: true |