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: workflow_call:
inputs: inputs:
token: token:
description: 'Token for accessing private repos'
required: false required: false
default: ${{ github.token }}
type: string type: string
jobs: jobs:
@ -13,9 +13,17 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: 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 - uses: actions/checkout@v2
with: with:
token: ${{ inputs.token }} token: ${{ env.TOKEN }}
submodules: recursive submodules: recursive
- name: Install kicad - name: Install kicad