File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 - name : Parse version
2525 id : parse
2626 run : |
27- echo "major=$(echo ${{ github.event. inputs.version }} | cut -d '.' -f 1)" >> $GITHUB_OUTPUT
28- echo "minor=$(echo ${{ github.event. inputs.version }} | cut -d '.' -f 2)" >> $GITHUB_OUTPUT
29- echo "patch=$(echo ${{ github.event. inputs.version }} | cut -d '.' -f 3)" >> $GITHUB_OUTPUT
27+ echo "major=$(echo ${{ inputs.version }} | cut -d '.' -f 1)" >> $GITHUB_OUTPUT
28+ echo "minor=$(echo ${{ inputs.version }} | cut -d '.' -f 2)" >> $GITHUB_OUTPUT
29+ echo "patch=$(echo ${{ inputs.version }} | cut -d '.' -f 3)" >> $GITHUB_OUTPUT
3030
3131 - uses : actions/checkout@v3
3232 with :
3636 run : |
3737 MAJOR="${{ steps.parse.outputs.major }}"
3838 MINOR="${{ steps.parse.outputs.major }}.${{ steps.parse.outputs.major }}"
39- TARGET="${{ github.event. inputs.release_ref }}"
39+ TARGET="${{ inputs.release_ref }}"
4040 git tag -f $MAJOR $TARGET
4141 git tag -f $MINOR $TARGET
4242 git push origin $MAJOR $MINOR --force
You can’t perform that action at this time.
0 commit comments