Merge pull request #311 from chuckwagoncomputing/fix-token

Fix token
This commit is contained in:
rusefillc 2023-07-12 21:32:17 -07:00 committed by GitHub
commit 6b3fd9b2fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 2 deletions

View File

@ -1,16 +1,29 @@
name: Create Board
on:
workflow_call
workflow_call:
inputs:
token:
description: 'Token for accessing private repos'
required: false
type: string
jobs:
create-board:
runs-on: ubuntu-latest
steps:
- name: Set Token
run: |
if ! [[ -z "${{ inputs.token }}" ]]; then
echo "TOKEN=${{ inputs.token }}" >> "$GITHUB_ENV"
else
echo "TOKEN=${{ github.token }}" >> "$GITHUB_ENV"
fi
- uses: actions/checkout@v2
with:
token: ${{ secrets.MY_REPO_PAT }}
token: ${{ env.TOKEN }}
submodules: recursive
- name: Install kicad