Skip to content

Commit

Permalink
Actions can't use secrets
Browse files Browse the repository at this point in the history
Also refactored to an input
  • Loading branch information
DanForever committed Feb 10, 2022
1 parent b16c23b commit 40df81b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build-teensy-loader-cli/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 40df81b

Please sign in to comment.