Move GitHub Token to inputs

Refs #30
This commit is contained in:
Stefan Zweifel 2020-01-13 21:01:50 +01:00
parent 1a9ba81dae
commit 1314d10095
2 changed files with 6 additions and 2 deletions

View File

@ -21,6 +21,10 @@ inputs:
description: Path to git repository
required: false
default: '.'
github_token:
description: Github Token. Usually this is the value from ${{ secrets.GITHUB_TOKEN }}. Pass a PAT if you need a more powerful token.
required: true
runs:
using: 'docker'

View File

@ -36,11 +36,11 @@ _setup_git ( ) {
cat <<- EOF > $HOME/.netrc
machine github.com
login $GITHUB_ACTOR
password $GITHUB_TOKEN
password $INPUT_GITHUB_TOKEN
machine api.github.com
login $GITHUB_ACTOR
password $GITHUB_TOKEN
password $INPUT_GITHUB_TOKEN
EOF
chmod 600 $HOME/.netrc