diff --git a/action.yml b/action.yml index 198979d..58322d3 100644 --- a/action.yml +++ b/action.yml @@ -31,6 +31,7 @@ runs: uses: actions/checkout@v6 with: fetch-depth: '0' + token: "${{ inputs.token }}" - name: Checking if ran on the dev branch run: | if [[ "${{ github.ref }}" != refs/heads/dev ]]; then @@ -67,15 +68,6 @@ runs: run: | git config user.email "release@example.com" git config user.name "Release" - - log_info "Overriding git repository auth with PAT" - - repo_url="$(git remote get-url origin)" - repo_url="${repo_url#https://}" # Remove HTTPS - GIT_NEW_URL="https://MilaBot:${{ inputs.token }}@${repo_url}.git" - - git remote set-url origin "$GIT_NEW_URL" - git config --local --unset http.https://${GITHUB_SERVER_URL#https://}/.extraheader - name: Pushing new version run: | log_info "Pushing new tag"