File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 1111jobs :
1212 create_version_and_release :
1313 runs-on : ubuntu-latest
14+ permissions :
15+ contents : write
1416 steps :
1517 - name : Checkout code
1618 uses : actions/checkout@v4
@@ -30,26 +32,18 @@ jobs:
3032 if : ${{ steps.bump_version.outputs.new_tag != '' }}
3133 run : |
3234 # 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/"
35+ # git config --global url."https://x-access-token:${{ secrets.REPO_TOKEN }}@github.com/".insteadOf "https://github.com/"
3436
3537 # Extract major, minor, and patch versions
3638 NEW_TAG=${{ steps.bump_version.outputs.new_tag }}
3739 MAJOR=$(echo $NEW_TAG | cut -d. -f1)
3840 MINOR=$(echo $NEW_TAG | cut -d. -f2)
3941
40- # repoURL=$(git remote get-url origin | sed "s/github\.com/${GITHUB_USERNAME}:${GITHUB_TOKEN}@github.com/1")
41- # echo "x${repoURL}x"
42- # git remote set-url origin "${repoURL}"
43- # echo 'xs'
44- # git remote get-url origin
45- # echo 'xe'
46-
4742 # Create and push vMAJOR and vMAJOR.MINOR tags
4843 git tag "v${MAJOR}"
4944 git tag "v${MAJOR}.${MINOR}"
5045 git push origin "v${MAJOR}" "v${MAJOR}.${MINOR}"
5146 env :
52- GITHUB_USERNAME : dev-dull
5347 GITHUB_TOKEN : ${{ secrets.REPO_TOKEN }}
5448
5549 - name : Cut Release
You can’t perform that action at this time.
0 commit comments