From 36245eb8ae058b837b3de94766c8e15ae2d67279 Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Mon, 31 Jul 2023 12:20:40 -0400 Subject: [PATCH 1/2] update backport flow Signed-off-by: Derek Ho --- .github/workflows/backport.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index e47d8d88c..bf14c502a 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -22,7 +22,9 @@ jobs: installation_id: 22958780 - name: Backport - uses: VachaShah/backport@v1.1.4 - with: - github_token: ${{ steps.github_app_token.outputs.token }} - branch_name: backport/backport-${{ github.event.number }} + uses: VachaShah/backport@v2.2.0 + with: + github_token: ${{ steps.github_app_token.outputs.token }} + head_template: backport/backport-<%= number %>-to-<%= base %> + labels_template: "<%= JSON.stringify([...labels, 'autocut']) %>" + failure_labels: "failed backport" From bd7e2df0f1eb5b45ba9c0049c23f4432f056a50a Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Mon, 31 Jul 2023 12:21:37 -0400 Subject: [PATCH 2/2] fix syntax Signed-off-by: Derek Ho --- .github/workflows/backport.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index bf14c502a..9537ddebd 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -23,8 +23,8 @@ jobs: - name: Backport uses: VachaShah/backport@v2.2.0 - with: - github_token: ${{ steps.github_app_token.outputs.token }} - head_template: backport/backport-<%= number %>-to-<%= base %> - labels_template: "<%= JSON.stringify([...labels, 'autocut']) %>" - failure_labels: "failed backport" + with: + github_token: ${{ steps.github_app_token.outputs.token }} + head_template: backport/backport-<%= number %>-to-<%= base %> + labels_template: "<%= JSON.stringify([...labels, 'autocut']) %>" + failure_labels: "failed backport"