File tree Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Original file line number Diff line number Diff line change 44 workflow_dispatch :
55 inputs :
66 BRANCH_NAME :
7- description : The source branch to work with, if not implicit
8- required : false
7+ description : The source branch to work with
8+ required : true
99 NEW_VERSION :
1010 description : New version to set in the source branch (e.g. 5.6.0)
1111 required : true
1212
1313jobs :
14- prepare :
15- name : Prepare
16- runs-on : ubuntu-latest
17- outputs :
18- branch_name : ${{ inputs.BRANCH_NAME || github.ref_name }}
19- steps :
20- - run : exit 0
21-
2214 make-branch :
2315 name : Make branch
2416 runs-on : ubuntu-latest
25- needs :
26- - prepare
2717 steps :
2818 - uses : actions/checkout@v5
2919 with :
30- ref : ${{ needs.prepare.outputs.branch_name }}
20+ ref : ${{ inputs.BRANCH_NAME }}
3121
3222 - name : Determine project version
3323 id : project_version
@@ -40,16 +30,14 @@ jobs:
4030 git push origin ${{ steps.project_version.outputs.version }}
4131
4232 update-version :
43- name : Update version in `${{ needs.prepare.outputs.branch_name }}` to `${{ inputs.NEW_VERSION }}`
33+ name : Update version in `${{ inputs.BRANCH_NAME }}` to `${{ inputs.NEW_VERSION }}`
4434 runs-on : ubuntu-latest
45- needs :
46- - prepare
4735 env :
4836 NEW_VERSION : ${{ inputs.NEW_VERSION }}
4937 steps :
5038 - uses : actions/checkout@v5
5139 with :
52- ref : ${{ needs.prepare.outputs.branch_name }}
40+ ref : ${{ inputs.BRANCH_NAME }}
5341
5442 - name : Update `vcpkg.json`
5543 run : |
You can’t perform that action at this time.
0 commit comments