diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml deleted file mode 100644 index 05468ff..0000000 --- a/.github/workflows/backport.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Backport PRs -on: - pull_request: - types: - - closed - -jobs: - backport-v0_34_x: - 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 }}"