Skip to content

Bump next from 12.1.4 to 13.5.6 #41

Bump next from 12.1.4 to 13.5.6

Bump next from 12.1.4 to 13.5.6 #41

Workflow file for this run

name: create hotfix branch from latest tag
on:
pull_request:
labeled:
- hotfix
jobs:
Create-Hotfix-Branch:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: config
run: |
git config --global user.email "[email protected]" && git config --global user.name "artblocks eng"
- name: delete current hotfix branch
continue-on-error: true
run: |
git push origin -d hotfix && git branch -D hotfix
- name: get tags
run: |
git fetch --tags
- name: restore branch
run: |

Check failure on line 24 in .github/workflows/hotfix-flow.yml

View workflow run for this annotation

GitHub Actions / create hotfix branch from latest tag

Invalid workflow file

The workflow is not valid. .github/workflows/hotfix-flow.yml (Line: 24, Col: 14): Unexpected end of expression: '.'. Located at position 13 within expression: github.event.
git checkout -b ${{ github.event.pull_request.head.ref }} ${{ github.event.}}
- name: create hotfix branch
run: |
git checkout -b hotfix $(git describe --tags $(git rev-list --tags --max-count=1))
- name: cherry pick branch and push
run: |
git cherry-pick $(git merge-base main ${{ github.event.pull_request.head.ref }})..${{ github.event.pull_request.head.ref }} --strategy-option=theirs
- name: push
run: |
git push origin hotfix