Revert "[ACA-4649] fix token propagation"

This reverts commit d939caa5d9.
This commit is contained in:
Denys Vuika
2023-03-07 14:25:49 +00:00
parent d939caa5d9
commit c0e01fc6ab
3 changed files with 25 additions and 9 deletions
+5 -1
View File
@@ -2,6 +2,10 @@ name: "Publish GitHub Tag"
description: "Publish GitHub Tag"
inputs:
github_token:
description: 'Github token'
required: true
type: string
branch_name:
description: 'Name of the branch the workflow runs on'
required: true
@@ -27,7 +31,7 @@ runs:
if [[ "${{ inputs.dry-run }}" != "true" ]]; then
git tag -a ${VERSION} -m "${VERSION} [ci skip] "
git remote rm origin
GITHUB_REPO=https://${{ secrets.GITHUB_TOKEN }}:x-oauth-basic@github.com/Alfresco/alfresco-content-app.git
GITHUB_REPO=https://${{ inputs.github_token }}:x-oauth-basic@github.com/Alfresco/alfresco-content-app.git
git remote add origin $GITHUB_REPO
git push origin --tags
fi