Skip to content

Commit

Permalink
chore: add bump and sync workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
alycejenni committed Dec 11, 2023
1 parent e14c39a commit ae5b589
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Bump version

on:
push:
branches:
- main

jobs:
bump-version:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-latest
name: "Bump version and create changelog"
steps:
- name: Check out
uses: actions/checkout@v3
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
fetch-depth: 0
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
changelog_increment_filename: CURRENT.md
extra_requirements: "cz-nhm"
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: "CURRENT.md"
tag_name: v${{ env.REVISION }}
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
27 changes: 27 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Sync branches

on:
push:
branches:
- main

jobs:
sync-branches:
runs-on: ubuntu-latest
name: "Sync dev and patch branches to latest commit"
steps:
- name: Check out
uses: actions/checkout@v3
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
fetch-depth: 0
- name: Sync dev branch
uses: connor-baer/action-sync-branch@main
with:
branch: dev
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Sync patch branch
uses: connor-baer/action-sync-branch@main
with:
branch: patch
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

0 comments on commit ae5b589

Please sign in to comment.