Skip to content

Commit

Permalink
automatically merge to release branch when version number is incremen…
Browse files Browse the repository at this point in the history
…ted, hopefully
  • Loading branch information
nyanotech committed Feb 16, 2024
1 parent 3b1735a commit 7f1329f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on:
push:
branches:
- main

name: Update release branch if version incremented
jobs:
Release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check if version bumped in package.json
run: '[ "$(git blame -l package.json | grep '"version":' | cut -d " " -f 1)" = "$(git rev-parse HEAD)" ]'
- name: Merge to release branch
run: 'git branch -f release && git push -f origin release'

0 comments on commit 7f1329f

Please sign in to comment.