Update start.sh
This commit is contained in:
parent
af9fa9e17f
commit
7f77d44deb
@ -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:
|
||||||
|
2
start.sh
2
start.sh
@ -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;
|
Loading…
x
Reference in New Issue
Block a user