Update setup-common.yml

master
Vitaly Mikhailov 3 years ago committed by GitHub
parent 857c3c8948
commit 99479012b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,13 +3,14 @@ name: Common Setup
on: on:
workflow_call: workflow_call:
inputs: inputs:
github-token:
required: true
type: string
fetch-depth: fetch-depth:
required: false required: false
type: number type: number
default: 1 default: 1
secrets:
GITHUB_TOKEN:
description: 'A token passed from the caller workflow'
required: true
jobs: jobs:
setup-common: setup-common:
@ -20,7 +21,7 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: 'recursive' submodules: 'recursive'
fetch-depth: ${{inputs.fetch-depth}} fetch-depth: ${{ inputs.fetch-depth }}
- name: Setup .NET 6 - name: Setup .NET 6
uses: actions/setup-dotnet@master uses: actions/setup-dotnet@master
@ -38,4 +39,4 @@ jobs:
with: with:
source-url: https://nuget.pkg.github.com/BUTR/index.json source-url: https://nuget.pkg.github.com/BUTR/index.json
env: env:
NUGET_AUTH_TOKEN: ${{inputs.github-token}} NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Loading…
Cancel
Save