Skip to content

Commit 3ce3eeb

Browse files
committed
try it copilot's way
1 parent 9dc90f3 commit 3ce3eeb

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/cut-release.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,20 @@ jobs:
2929
# There has to be a better way to do this, but none of the tagging actions appear to support this natively.
3030
if: ${{ steps.bump_version.outputs.new_tag != '' }}
3131
run: |
32+
# Configure git to use the GITHUB_TOKEN for authentication
33+
git config --global url."https://x-access-token:${{ secrets.REPO_TOKEN }}@github.com/".insteadOf "https://github.com/"
34+
3235
# Extract major, minor, and patch versions
3336
NEW_TAG=${{ steps.bump_version.outputs.new_tag }}
3437
MAJOR=$(echo $NEW_TAG | cut -d. -f1)
3538
MINOR=$(echo $NEW_TAG | cut -d. -f2)
3639
3740
# repoURL=$(git remote get-url origin | sed "s/github\.com/${GITHUB_USERNAME}:${GITHUB_TOKEN}@github.com/1")
38-
repoURL=$(git remote get-url origin | sed "s/github\.com/${GITHUB_USERNAME}@github.com/1")
39-
echo "x${repoURL}x"
40-
git remote set-url origin "${repoURL}"
41-
echo 'xs'
42-
git remote get-url origin
43-
echo 'xe'
41+
# echo "x${repoURL}x"
42+
# git remote set-url origin "${repoURL}"
43+
# echo 'xs'
44+
# git remote get-url origin
45+
# echo 'xe'
4446
4547
# Create and push vMAJOR and vMAJOR.MINOR tags
4648
git tag "v${MAJOR}"

0 commit comments

Comments
 (0)