From 40df81b99f3e0d67fff4578428ab9e8bb7bdb442 Mon Sep 17 00:00:00 2001 From: Dan Neve <6909667+DanForever@users.noreply.github.com> Date: Thu, 10 Feb 2022 22:27:23 +0100 Subject: [PATCH] Actions can't use secrets Also refactored to an input --- .github/workflows/build-teensy-loader-cli/action.yml | 5 ++++- .github/workflows/publish-app.yml | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-teensy-loader-cli/action.yml b/.github/workflows/build-teensy-loader-cli/action.yml index a9f8ed1..c34b6a0 100644 --- a/.github/workflows/build-teensy-loader-cli/action.yml +++ b/.github/workflows/build-teensy-loader-cli/action.yml @@ -15,6 +15,9 @@ inputs: description: The filepath of the resulting executable required: false default: "./teensy_loader_cli.exe" + token: + description: secret token required to checkout an external repository + required: true outputs: binary-path: @@ -34,7 +37,7 @@ runs: repository: PaulStoffregen/teensy_loader_cli ref: ${{ inputs.version }} path: ${{ inputs.local_source_path }} - token: ${{ secrets.TEENSY_LOADER_CLI_SOURCE_PAT }} + token: ${{ inputs.token }} - shell: bash name: Fix broken include paths for windows diff --git a/.github/workflows/publish-app.yml b/.github/workflows/publish-app.yml index 5dab651..9050040 100644 --- a/.github/workflows/publish-app.yml +++ b/.github/workflows/publish-app.yml @@ -45,6 +45,8 @@ jobs: - name: Build Teensy Loader CLI id: build-step uses: ./.github/workflows/build-teensy-loader-cli + with: + token: ${{ secrets.TEENSY_LOADER_CLI_SOURCE_PAT }} - name: Store Teensy loader cli binary as asset uses: actions/upload-artifact@v2 with: