forked from ScottPlot/ScottPlot
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1014 Bytes
/
Copy pathbump-version.yaml
File metadata and controls
37 lines (35 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Bump Version
on:
workflow_dispatch: # careful! you may skip a version by accident.
workflow_call:
secrets:
GH_TOKEN:
required: true
jobs:
bump:
name: Bump and Push
runs-on: ubuntu-latest
steps:
- name: 🛒 Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
ref: main
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0
- name: Configure Git
run: |
git config --global user.name 'Scott W Harden (via GitHub Actions)'
git config --global user.email 'swharden@gmail.com'
- name: Pull the main branch
run: git pull origin main
- name: Bump csproj file versions
run: dotnet run --project "./dev/BumpVersion/"
- name: Commit changes
run: |
git add --all
git commit -m "ScottPlot: bump version"
- name: Push changes
run: git push origin HEAD:main