Bump next from 12.1.4 to 13.5.6 #41
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / create hotfix branch from latest tagInvalid workflow file
|
||
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 |