Skip to content

Commit b16b0de

Browse files
committed
Remove dynamic branch selection
1 parent 308603b commit b16b0de

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

.github/workflows/update-versions.yml renamed to .github/workflows/create-release-branch.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,20 @@ on:
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

1313
jobs:
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: |

0 commit comments

Comments
 (0)