diff --git a/action.yml b/action.yml index e107bb6..6587af4 100644 --- a/action.yml +++ b/action.yml @@ -50,10 +50,12 @@ runs: git config user.name "Release" original_url="$(git remote get-url origin)" - repo_url="${original_url#https://}" # Remove HTTPS - new_url="https://x-access-token:${{ secrets.CI_GIT_WRITE_TOKEN }}@$repo_url" - git remote set-url origin "$new_url" + gitea_url="${GITHUB_SERVER_URL#https://}" # Remove HTTPS + log_info "Overriding git repository auth with PAT" + git config --local http.https://${gitea_url}/.extraheader "Authorization: $(echo -n 'Skydust:${{ secrets.CI_GIT_WRITE_TOKEN }}' | base64 -w 0)" + + log_info "Pushing new tag" git fetch git tag -a "v${NEW_VERSION}" -m "Release version ${NEW_VERSION}" git push origin "v${NEW_VERSION}"