2024-09-30 20:08:38 -04:00
|
|
|
name: Update Version
|
2024-09-27 22:57:39 -04:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
2024-09-27 23:12:06 -04:00
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
pull-requests: write
|
|
|
|
|
2024-09-27 22:57:39 -04:00
|
|
|
jobs:
|
2024-09-27 23:19:58 -04:00
|
|
|
run-tests:
|
|
|
|
name: "Run tests"
|
2024-09-30 20:08:38 -04:00
|
|
|
runs-on: ubuntu-latest
|
2024-09-27 22:57:39 -04:00
|
|
|
steps:
|
2024-09-27 23:15:45 -04:00
|
|
|
- uses: actions/checkout@v4
|
2024-09-27 22:57:39 -04:00
|
|
|
- uses: actions/setup-go@v5
|
|
|
|
with:
|
2024-10-21 12:32:04 -04:00
|
|
|
go-version: "1.23"
|
2024-09-27 22:57:39 -04:00
|
|
|
check-latest: true
|
2024-09-27 23:05:50 -04:00
|
|
|
- name: Run tests
|
2024-09-27 22:57:39 -04:00
|
|
|
run: make test
|
|
|
|
|
2024-09-27 23:19:58 -04:00
|
|
|
bump-version:
|
2024-10-18 13:14:48 -04:00
|
|
|
needs: [run-tests]
|
2024-09-27 23:19:58 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: "Bump Version"
|
2024-10-01 16:41:26 -04:00
|
|
|
if: ${{ !startsWith(github.event.head_commit.message, 'bump:') }}
|
2024-09-27 23:19:58 -04:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
2024-09-27 23:33:48 -04:00
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
2024-09-27 23:19:58 -04:00
|
|
|
fetch-depth: 0
|
2024-09-27 22:57:39 -04:00
|
|
|
- name: Create bump and changelog
|
|
|
|
uses: commitizen-tools/commitizen-action@master
|
|
|
|
with:
|
2024-09-27 23:33:48 -04:00
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2024-10-18 13:14:48 -04:00
|
|
|
increment: "PATCH"
|