From 21598629a3ab4c9f856cc869936a9403befddd0f Mon Sep 17 00:00:00 2001 From: Craig Perkins Date: Thu, 1 Feb 2024 12:04:07 -0500 Subject: [PATCH] Fix backport workflow (#533) * Fix backport workflow Signed-off-by: Craig Perkins * Add condition Signed-off-by: Craig Perkins --------- Signed-off-by: Craig Perkins --- .github/workflows/backport.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 5ed1dcdc..374d4d98 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -7,6 +7,7 @@ on: jobs: backport: + if: github.event.pull_request.merged == true runs-on: ubuntu-latest permissions: contents: write @@ -25,4 +26,5 @@ jobs: uses: VachaShah/backport@v2.2.0 with: github_token: ${{ steps.github_app_token.outputs.token }} - branch_name: backport/backport-${{ github.event.number }} + head_template: backport/backport-<%= number %>-to-<%= base %> + failure_labels: backport-failed