Skip to content

Commit

Permalink
build: Fix issue with passing variables to local action
Browse files Browse the repository at this point in the history
  • Loading branch information
bow committed Jul 25, 2024
1 parent 624c571 commit 90031f3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/actions/setup-nix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ description: Checkout the repository, setup nix, and setup cachix

inputs:
nix_path:
required: true
default: nixpkgs=flake:nixpkgs
cachix_name:
required: true
default: bow
cachix_auth_token:
required: true
Expand All @@ -24,4 +22,4 @@ runs:
uses: cachix/cachix-action@v15
with:
name: ${{ inputs.cachix_name }}
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
authToken: '${{ inputs.cachix_auth_token }}'
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:

- name: Set up Nix
uses: ./.github/actions/setup-nix
with:
cachix_auth_token: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: Run tests
run: nix develop . --command make test-cov-xml
Expand Down Expand Up @@ -52,6 +54,8 @@ jobs:

- name: Set up Nix
uses: ./.github/actions/setup-nix
with:
cachix_auth_token: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: Run tests
run: nix develop . --command make lint
Expand All @@ -64,6 +68,8 @@ jobs:
uses: actions/checkout@v4

- uses: ./.github/actions/setup-nix
with:
cachix_auth_token: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: Scan AST security
run: nix develop . --command make scan-sec-ast
Expand All @@ -77,6 +83,8 @@ jobs:

- name: Set up Nix
uses: ./.github/actions/setup-nix
with:
cachix_auth_token: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: Export dependencies
run: go list -json -deps ./... > go.list
Expand All @@ -96,6 +104,8 @@ jobs:

- name: Set up Nix
uses: ./.github/actions/setup-nix
with:
cachix_auth_token: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: Set image tag
run: >
Expand Down

0 comments on commit 90031f3

Please sign in to comment.