Feature/use reviewdog #84
Workflow file for this run
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
### Bump version | |
### Docs available at https://github.com/anothrNick/github-tag-action | |
name: Bump version | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: '0' | |
- name: create pre release | |
if: | | |
github.event_name == 'pull_request' | |
uses: anothrNick/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: true | |
PRERELEASE: true | |
DEFAULT_BUMP: patch | |
- name: Bump version and push tag | |
if: | | |
github.ref == 'refs/heads/main' | |
id: tag | |
uses: anothrNick/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: true | |
DEFAULT_BUMP: patch | |
PRERELEASE: false | |
- name: Release | |
if: steps.tag.outputs.tag | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: "${{ steps.tag.outputs.tag }}" |