File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed
Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -15,19 +15,19 @@ jobs:
1515 contents : write
1616 runs-on : ubuntu-latest
1717 steps :
18- - uses : actions/checkout@v6
19- with :
20- fetch-depth : 0
21- - name : Configure Git
22- run : |
23- git config user.email 'github-actions[bot]@users.noreply.github.com'
24- git config user.name 'github-actions[bot]'
25- - name : Set main version
26- id : set-main-version
27- run : |
28- main_version="$(echo "${{ github.ref_name }}" | grep -oP "^(v\d+)")"
29- echo "main-version=${main_version}" >> "${GITHUB_OUTPUT}"
30- - name : Tag new target
31- run : git tag --force ${{ steps.set-main-version.outputs.main-version }} ${{ github.ref_name }}
32- - name : Push new tag
33- run : git push --force origin ${{ steps.set-main-version.outputs.main-version }}
18+ - uses : actions/checkout@v6
19+ with :
20+ fetch-depth : 0
21+ - name : Configure Git
22+ run : |
23+ git config user.email 'github-actions[bot]@users.noreply.github.com'
24+ git config user.name 'github-actions[bot]'
25+ - name : Set main version
26+ id : set-main-version
27+ run : |
28+ main_version="$(echo "${{ github.ref_name }}" | grep -oP "^(v\d+)")"
29+ echo "main-version=${main_version}" >> "${GITHUB_OUTPUT}"
30+ - name : Tag new target
31+ run : git tag --force ${{ steps.set-main-version.outputs.main-version }} ${{ github.ref_name }}
32+ - name : Push new tag
33+ run : git push --force origin ${{ steps.set-main-version.outputs.main-version }}
You can’t perform that action at this time.
0 commit comments