diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index e47d8d88c0..9a0cd49777 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -7,6 +7,7 @@ on: jobs: backport: + if: ${{ contains(github.event.label.name, 'backport') }} runs-on: ubuntu-latest permissions: contents: write @@ -22,7 +23,7 @@ jobs: installation_id: 22958780 - name: Backport - uses: VachaShah/backport@v1.1.4 + uses: VachaShah/backport@v2.1.0 with: github_token: ${{ steps.github_app_token.outputs.token }} - branch_name: backport/backport-${{ github.event.number }} + head_template: backport/backport-<%= number %>-to-<%= base %> \ No newline at end of file