Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Replace abandoned verify-pr-label-action with inline gh check (#74953)

Chris Truterfa9e51914a3e
diff --git a/.github/workflows/backport-reminder.yml b/.github/workflows/backport-reminder.yml
index 276a9ecff01..78b117357f0 100644
--- a/.github/workflows/backport-reminder.yml
+++ b/.github/workflows/backport-reminder.yml
@@ -12,9 +12,15 @@ jobs:
name: Decide whether to backport or not
runs-on: ${{ vars.DEFAULT_RUNNER_KEY }}
timeout-minutes: 5
+ permissions: {}
steps:
- - uses: jesusvasquez333/verify-pr-label-action@657d111bbbe13e22bbd55870f1813c699bde1401 # v1.4.0
- with:
- github-token: '${{ secrets.GITHUB_TOKEN }}'
- valid-labels: 'no-backport, backport, double-backport, triple-backport'
- disable-reviews: true
+ - name: Fail if backport decision label is missing
+ if: >
+ github.event_name == 'pull_request' &&
+ !contains(github.event.pull_request.labels.*.name, 'no-backport') &&
+ !contains(github.event.pull_request.labels.*.name, 'backport') &&
+ !contains(github.event.pull_request.labels.*.name, 'double-backport') &&
+ !contains(github.event.pull_request.labels.*.name, 'triple-backport')
+ run: |
+ echo "::error::PR is missing a backport decision label. Add one of: no-backport, backport, double-backport, triple-backport"
+ exit 1