Add support to override the default github token

This commit is contained in:
Pedro Rodrigues
2021-06-16 19:08:28 -03:00
parent 7040c46162
commit 4f318753d5
3 changed files with 37 additions and 6 deletions

View File

@@ -9,10 +9,10 @@ _git_setup ( ) {
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