Skip to content

automatically merge to release branch when version number is incremen… #1

automatically merge to release branch when version number is incremen…

automatically merge to release branch when version number is incremen… #1

Workflow file for this run

on:
push:
branches:
- main
name: Update release branch if version incremented
jobs:
Release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

Check failure on line 11 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
- 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'