aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/backport.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml
index 79d4bd115e..9c80cd85e1 100644
--- a/.github/workflows/backport.yml
+++ b/.github/workflows/backport.yml
@@ -27,6 +27,18 @@ jobs:
label_pattern: "^ci:backport ([^ ]+)$"
github_token: ${{ steps.app-token.outputs.token }}
+ - name: Create failed backport label
+ if: ${{ steps.backport.outputs.was_successful == 'false' }}
+ uses: actions/github-script@v7
+ with:
+ script: |
+ github.rest.issues.addLabels({
+ issue_number: context.issue.number,
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ labels: ['needs:backport']
+ })
+
- name: Enable automerge
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}