File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -33,16 +33,15 @@ jobs:
3333 --title="$tag" \
3434 -F NOTES.md
3535 - name : Get Main version
36+ id : vars
3637 run : |
3738 main_version=$(echo ${{ github.ref_name }} | cut -d '.' -f 1)
3839 echo "Main version: $main_version"
39- echo "::set-output name= main_version:: $main_version"
40+ echo "main_version= $main_version" >> "$GITHUB_OUTPUT "
4041 - name : Update Main version
4142 if : ${{ !env.ACT }} # do not run locally
4243 env :
4344 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44- main_version : ${{ steps.Get-Main-Version.outputs.main_version }}
45- target : ${{ github.ref_name }}
4645 run : |
47- git tag -f ${{ env. main_version }} ${{ env.target }}
48- git push origin ${{ env .main_version }} --force
46+ git tag -f ${{ steps.vars.outputs. main_version }} ${{ github.ref_name }}
47+ git push origin ${{ steps.vars.outputs .main_version }} --force
Original file line number Diff line number Diff line change @@ -12,18 +12,17 @@ jobs:
1212 with :
1313 fetch-depth : 0
1414 - name : Get Main version
15+ id : vars
1516 run : |
1617 echo ${{ github.ref_name }}
1718 main_version=$(echo "v3.1.1" | cut -d '.' -f 1)
1819 echo "Main version: $main_version"
19- echo "::set-output name= main_version:: $main_version"
20+ echo "main_version= $main_version" >> "$GITHUB_OUTPUT "
2021 echo $main_version
2122 - name : Update Main version
2223 if : ${{ !env.ACT }} # do not run locally
2324 env :
2425 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25- main_version : ${{ steps.Get-Main-Version.outputs.main_version }}
26- target : ${{ github.ref_name }}
2726 run : |
28- git tag -f ${{ env. main_version }} ${{ env.target }}
29- git push origin ${{ env .main_version }} --force
27+ git tag -f ${{ steps.vars.outputs. main_version }} ${{ github.ref_name }}
28+ git push origin ${{ steps.vars.outputs .main_version }} --force
You can’t perform that action at this time.
0 commit comments