Skip to content

Commit

Permalink
fix: GHA add bump (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
diefans authored May 14, 2024
1 parent f49c792 commit 7d406a7
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/bump.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Bump version
# XXX test line for PR

on:
push:
branches:
- master

jobs:
bump-version:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-latest
name: "Bump version and create changelog with commitizen"
steps:
- name: Check out
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
fetch-depth: 0

- name: Wait for build
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
gh run watch --exit-status "$(gh run list -w build.yml -b master -L 1 --json databaseId,headSha -q '.[]|[.databaseId, .headSha]|@tsv' | grep ${{ github.sha }} | cut -f1)"
- name: update pip
run: pip install -U pip

- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.GH_TOKEN }}
debug: true

0 comments on commit 7d406a7

Please sign in to comment.