Skip to content

Commit ded5423

Browse files
committed
streamline toc bumps
1 parent ff11f2a commit ded5423

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/tocBump.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: TOC Bump
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
message:
6+
description: 'Commit message'
7+
required: false
8+
default: 'TOC Bump'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Get next version
18+
uses: reecetech/version-increment@2023.9.3
19+
id: version
20+
with:
21+
scheme: semver
22+
increment: patch
23+
24+
- name: Create & push empty commit
25+
run: |
26+
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
27+
git config --global user.name "${{ github.actor }}"
28+
git commit --allow-empty -m "${{ github.event.inputs.message }}"
29+
git push
30+
31+
- name: Publish release
32+
uses: softprops/action-gh-release@v1
33+
with:
34+
# this cannot be ${{ secrets.GITHUB_TOKEN }} because that'll block the on release publish workflow from running
35+
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
36+
name: ${{ steps.version.outputs.v-version }}
37+
tag_name: ${{ steps.version.outputs.v-version }}

0 commit comments

Comments
 (0)