-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (32 loc) · 1.07 KB
/
tocBump.yml
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: TOC Bump
on:
workflow_dispatch:
inputs:
message:
description: 'Commit message'
required: false
default: 'TOC Bump'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get next version
uses: reecetech/[email protected]
id: version
with:
scheme: semver
increment: patch
- name: Create & push empty commit
run: |
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git config --global user.name "${{ github.actor }}"
git commit --allow-empty -m "${{ github.event.inputs.message }}"
git push
- name: Publish release
uses: softprops/action-gh-release@v1
with:
# this cannot be ${{ secrets.GITHUB_TOKEN }} because that'll block the on release publish workflow from running
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
name: ${{ steps.version.outputs.v-version }}
tag_name: ${{ steps.version.outputs.v-version }}