Config Options Guard #73
This file contains hidden or 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: Config Options Guard | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ main ] | |
| workflow_run: | |
| workflows: [ "Yolo Update Pins" ] | |
| types: [ completed ] | |
| jobs: | |
| config-options: | |
| if: ${{ github.event_name != 'workflow_run' || (github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main') }} | |
| runs-on: ubuntu-latest | |
| env: | |
| TARGET_SHA: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_sha || github.sha }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ env.TARGET_SHA }} | |
| - name: Verify flake.lock owners | |
| run: scripts/check-flake-lock-owners.sh | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@v13 | |
| - name: Verify config options are up to date | |
| run: nix build .#checks.x86_64-linux.config-options --print-build-logs |