No longer override auth to not break checkout v6
This commit is contained in:
10
action.yml
10
action.yml
@@ -31,6 +31,7 @@ runs:
|
|||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: '0'
|
fetch-depth: '0'
|
||||||
|
token: "${{ inputs.token }}"
|
||||||
- name: Checking if ran on the dev branch
|
- name: Checking if ran on the dev branch
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ github.ref }}" != refs/heads/dev ]]; then
|
if [[ "${{ github.ref }}" != refs/heads/dev ]]; then
|
||||||
@@ -67,15 +68,6 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
git config user.email "release@example.com"
|
git config user.email "release@example.com"
|
||||||
git config user.name "Release"
|
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
|
- name: Pushing new version
|
||||||
run: |
|
run: |
|
||||||
log_info "Pushing new tag"
|
log_info "Pushing new tag"
|
||||||
|
|||||||
Reference in New Issue
Block a user