test for token

This commit is contained in:
David Holdeman 2023-07-12 23:26:19 -05:00
parent 170ca73766
commit cdf5a9e2e6
No known key found for this signature in database
GPG Key ID: DBEE6FCFCC9DD9A6
1 changed files with 10 additions and 2 deletions

View File

@ -4,8 +4,8 @@ on:
workflow_call:
inputs:
token:
description: 'Token for accessing private repos'
required: false
default: ${{ github.token }}
type: string
jobs:
@ -13,9 +13,17 @@ jobs:
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: ${{ inputs.token }}
token: ${{ env.TOKEN }}
submodules: recursive
- name: Install kicad