mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2026-06-16 16:38:51 +00:00
parent
1a9ba81dae
commit
1314d10095
@ -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'
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user