Skip to content

Merge pull request #24 from informalsystems/ph/automate-backport #3

Merge pull request #24 from informalsystems/ph/automate-backport

Merge pull request #24 from informalsystems/ph/automate-backport #3

Workflow file for this run

name: Backport PRs
on:
pull_request:
types:
- closed
jobs:
backport-v0_34_x:

Check failure on line 8 in .github/workflows/backport.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/backport.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'backport-v0.34.x')
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Fetch all branches
run: git fetch origin v0.34.x:v0.34.x
- name: Install Hub CLI
run: sudo snap install --classic hub
- name: Backport to v0.34.x
run: |
git checkout v0.34.x
git cherry-pick ${{ github.event.pull_request.merge_commit_sha }}
git push
hub pull-request -m "Backport: ${{ github.event.pull_request.title }}"
backport-v0_37_x:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'backport-v0.37.x')
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Fetch all branches
run: git fetch origin v0.37.x:v0.37.x
- name: Install Hub CLI
run: sudo snap install --classic hub
- name: Backport to v0.37.x
run: |
git checkout v0.37.x
git cherry-pick ${{ github.event.pull_request.merge_commit_sha }}
git push
hub pull-request -m "Backport: ${{ github.event.pull_request.title }}"