workflows/backport: avoid retriggering workflows after adding "has: port to stable" label (#410099)

This commit is contained in:
Wolfgang Walther
2025-05-24 07:29:53 +00:00
committed by GitHub
+5 -2
View File
@@ -9,7 +9,9 @@ on:
pull_request_target:
types: [closed, labeled]
permissions: {}
permissions:
contents: read
pull-requests: write
jobs:
backport:
@@ -48,7 +50,8 @@ jobs:
- name: "Add 'has: port to stable' label"
if: steps.backport.outputs.created_pull_numbers != ''
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
# Not the app on purpose to avoid triggering another workflow run after adding this label
GH_TOKEN: ${{ github.token }}
REPOSITORY: ${{ github.repository }}
NUMBER: ${{ github.event.number }}
run: |