No longer override auth to not break checkout v6

This commit is contained in:
2026-01-18 11:37:02 +00:00
parent 3812aa59b8
commit 1179f0a7f2

View File

@@ -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"