diff --git a/action.yml b/action.yml index b7b0b59..ad314da 100644 --- a/action.yml +++ b/action.yml @@ -2,7 +2,7 @@ name: 'Git Push' description: 'Pushing to Git repository local changes' author: 'ad-m' inputs: - repo-token: + github_token: description: 'Token for the repo. Can be passed in using {{ secrets.GITHUB_TOKEN }}' required: true branch: diff --git a/start.sh b/start.sh index 0079a3a..6c77d32 100755 --- a/start.sh +++ b/start.sh @@ -2,5 +2,5 @@ set -eux echo "Push to branch ${INPUT_BRANCH}"; -header=$(echo -n "ad-m:${INPUT_REPO-TOKEN}" | base64) +header=$(echo -n "ad-m:${INPUT_GITHUB_TOKEN}" | base64) git -c http.extraheader="AUTHORIZATION: basic $header" push origin refs/remotes/origin/master:master; \ No newline at end of file