From d74603adaa984fd2df0cbb371d0f20a610e1bdf8 Mon Sep 17 00:00:00 2001 From: Skydust Date: Wed, 25 Dec 2024 16:57:19 +0100 Subject: [PATCH] Fixing git push --- action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index e107bb6..d1266d0 100644 --- a/action.yml +++ b/action.yml @@ -50,10 +50,14 @@ runs: git config user.name "Release" original_url="$(git remote get-url origin)" + echo "HELLO $original_url" 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" + echo "HELLO $repo_url" + + new_url="https://Skydust:${{ secrets.CI_GIT_WRITE_TOKEN }}@$repo_url" + git remote set-url origin "$new_url" + env git fetch git tag -a "v${NEW_VERSION}" -m "Release version ${NEW_VERSION}" git push origin "v${NEW_VERSION}"