TOC Bump #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |