From 2d79ee42c784bb081c582daf0d74498d0b2f0e0c Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Sat, 21 Dec 2024 14:05:37 +0100 Subject: [PATCH] Quote variables and url --- .github/workflows/versioning.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml index 404e7ca..97de6ad 100644 --- a/.github/workflows/versioning.yml +++ b/.github/workflows/versioning.yml @@ -49,14 +49,14 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | git checkout main - git pull https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git main - git merge --no-ff $TEMP_BRANCH -m "Automated Version Bump [skip-versioning]" - git push https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git main + git pull "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git" main + git merge --no-ff "$TEMP_BRANCH" -m "Automated Version Bump [skip-versioning]" + git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git" main - name: Delete Temporary Branch if: always() env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - git push https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git --delete $TEMP_BRANCH + git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git" --delete "$TEMP_BRANCH" ...