mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
40 lines
867 B
YAML
40 lines
867 B
YAML
name: Update Version
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
run-tests:
|
|
name: "Run tests"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.23"
|
|
check-latest: true
|
|
- name: Run tests
|
|
run: make test
|
|
|
|
bump-version:
|
|
needs: [run-tests]
|
|
runs-on: ubuntu-latest
|
|
name: "Bump Version"
|
|
if: ${{ !startsWith(github.event.head_commit.message, 'bump:') }}
|
|
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 }}
|
|
increment: "PATCH"
|