parent
1a9ba81dae
commit
1314d10095
|
@ -21,6 +21,10 @@ inputs:
|
||||||
description: Path to git repository
|
description: Path to git repository
|
||||||
required: false
|
required: false
|
||||||
default: '.'
|
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:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
|
|
|
@ -36,11 +36,11 @@ _setup_git ( ) {
|
||||||
cat <<- EOF > $HOME/.netrc
|
cat <<- EOF > $HOME/.netrc
|
||||||
machine github.com
|
machine github.com
|
||||||
login $GITHUB_ACTOR
|
login $GITHUB_ACTOR
|
||||||
password $GITHUB_TOKEN
|
password $INPUT_GITHUB_TOKEN
|
||||||
|
|
||||||
machine api.github.com
|
machine api.github.com
|
||||||
login $GITHUB_ACTOR
|
login $GITHUB_ACTOR
|
||||||
password $GITHUB_TOKEN
|
password $INPUT_GITHUB_TOKEN
|
||||||
EOF
|
EOF
|
||||||
chmod 600 $HOME/.netrc
|
chmod 600 $HOME/.netrc
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue