Update start.sh

This commit is contained in:
Adam Dobrawy 2019-08-24 13:38:52 +02:00
parent af9fa9e17f
commit 7f77d44deb
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ name: 'Git Push'
description: 'Pushing to Git repository local changes' description: 'Pushing to Git repository local changes'
author: 'ad-m' author: 'ad-m'
inputs: inputs:
repo-token: github_token:
description: 'Token for the repo. Can be passed in using {{ secrets.GITHUB_TOKEN }}' description: 'Token for the repo. Can be passed in using {{ secrets.GITHUB_TOKEN }}'
required: true required: true
branch: branch:

View File

@ -2,5 +2,5 @@
set -eux set -eux
echo "Push to branch ${INPUT_BRANCH}"; 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; git -c http.extraheader="AUTHORIZATION: basic $header" push origin refs/remotes/origin/master:master;