Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jsvapiav committed Mar 21, 2024
1 parent 261c5ae commit 8a7ed48
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/actions/build-n-upload-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
description: 'github repository token'
required: true
default: "Not passed"
CACHIX_TOKEN2:
CACHIX_TOKEN:
description: 'cachix binary cache token'
required: true
default: "Not passed"
Expand All @@ -23,5 +23,6 @@ runs:
image: 'Dockerfile'
args:
- ${{ inputs.build_target }}
- ${{ inputs.GITHUB_TOKEN}}
- ${{ inputs.CACHIX_TOKEN }}
- ${{ inputs.GITHUB_TOKEN }}

6 changes: 3 additions & 3 deletions .github/actions/build-n-upload-action/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#!/bin/sh -l

BUILD_TARGET=$1
GITHUB_TOKEN=$2

echo "github_token: $GITHUB_TOKEN"
CACHIX_TOKEN=$2

echo "build target: $BUILD_TARGET"
time=$(date)
Expand All @@ -17,6 +15,8 @@ nix-env -iA cachix -f https://cachix.org/api/v1/install
echo "Using cachix version:"
cachix --version

cachix authtoken $CACHIX_TOKEN

echo "Build $BUILD_TARGET"
nix flake show
nix build --accept-flake-config .#$BUILD_TARGET
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
uses: ./.github/actions/build-n-upload-action
with:
build_target: 'fmo-os-installer-debug'
CACHIX_TOKEN: ${{ secrets.CACHIX_TOKEN }}
GITHUB_TOKEN: 'super github token'
context: .
secrets: |
Expand Down

0 comments on commit 8a7ed48

Please sign in to comment.