test for token
This commit is contained in:
parent
170ca73766
commit
cdf5a9e2e6
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue