Skip to content

Commit a0bc7b6

Browse files
committed
CICD: force version bump to use head:main
1 parent e14607f commit a0bc7b6

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/bump-version.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Bump Version
22

33
on:
4-
workflow_dispatch:
4+
workflow_dispatch: # careful! you may skip a version by accident.
55
workflow_call:
66
secrets:
77
GH_TOKEN:
@@ -16,6 +16,7 @@ jobs:
1616
uses: actions/checkout@v4
1717
with:
1818
token: ${{ secrets.GH_TOKEN }}
19+
ref: main
1920
- name: Setup .NET
2021
uses: actions/setup-dotnet@v4
2122
with:
@@ -30,6 +31,7 @@ jobs:
3031
run: dotnet run --project "./dev/BumpVersion/"
3132
- name: Commit changes
3233
run: |
33-
git commit -am "ScottPlot: bump csproj file versions"
34+
git add --all
35+
git commit -m "ScottPlot: bump version"
3436
- name: Push changes
35-
run: git push
37+
run: git push origin HEAD:main

0 commit comments

Comments
 (0)