From b3f6c8f531305e8b305a0e4e167d80ca2f93b921 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 16 Apr 2024 15:17:13 +1000 Subject: [PATCH] Revert to sqren backport action (#7051) * Revert to sqren backpor action * Remove invalid option --- .github/workflows/backport.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 5a0adbc3e4..916deb8e8c 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -16,11 +16,24 @@ jobs: permissions: contents: write pull-requests: write - if: github.event.pull_request.merged + if: | + github.event.pull_request.merged == true + && contains(github.event.pull_request.labels.*.name, 'backport') + && ( + (github.event.action == 'labeled' && github.event.label.name == 'backport') + || (github.event.action == 'closed') + ) steps: - name: Backport Action - uses: korthout/backport-action@ef20d86abccbac3ee3a73cb2efbdc06344c390e5 # Pinned at v2.5.0 + uses: sqren/backport-github-action@f54e19901f2a57f8b82360f2490d47ee82ec82c6 # pin@v9.2.2 with: github_token: ${{ secrets.GITHUB_TOKEN }} - copy_labels_pattern: '.+' - label_pattern: '^backport-to-(.+)$' + auto_backport_label_prefix: backport-to- + + - name: Info log + if: ${{ success() }} + run: cat ~/.backport/backport.info.log + + - name: Debug log + if: ${{ failure() }} + run: cat ~/.backport/backport.debug.log