Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41f3b5a commit c180eacCopy full SHA for c180eac
start.sh
@@ -18,8 +18,6 @@ fi
18
19
cd ${INPUT_DIRECTORY}
20
21
-# Ensure that the remote of the git repository of the current directory still is the repository where the github action is executed
22
-git remote add origin https://github.com/${GITHUB_REPOSITORY} || git remote set-url origin https://github.com/${GITHUB_REPOSITORY} || true
+remote_repo="https://${GITHUB_ACTOR}:${INPUT_GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
23
24
-header=$(echo -n "ad-m:${INPUT_GITHUB_TOKEN}" | base64)
25
-git -c http.extraheader="AUTHORIZATION: basic $header" push origin HEAD:${INPUT_BRANCH} --follow-tags $_FORCE_OPTION;
+git push "${remote_repo}" HEAD:${INPUT_BRANCH} --follow-tags $_FORCE_OPTION;
0 commit comments