mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
44 lines
915 B
YAML
44 lines
915 B
YAML
name: Bump Version
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
run-tests:
|
|
runs-on: ubuntu-latest
|
|
name: "Run tests"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.22"
|
|
check-latest: true
|
|
|
|
- name: Run tests
|
|
run: make test
|
|
|
|
bump-version:
|
|
if: "!startsWith(github.event.head_commit.message, 'bump:')"
|
|
runs-on: ubuntu-latest
|
|
name: "Bump Version"
|
|
needs: run-tests
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
fetch-depth: 0
|
|
- name: Create bump and changelog
|
|
uses: commitizen-tools/commitizen-action@master
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|