From c9769fe8ab4401a4678df74fbcb59ff7eeda904a Mon Sep 17 00:00:00 2001 From: Jakub Strzebonski Date: Fri, 24 Jun 2022 14:07:57 +0200 Subject: [PATCH] #1763 echo all PR labels --- .github/workflows/merge-only-when-ready.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/merge-only-when-ready.yml b/.github/workflows/merge-only-when-ready.yml index 091af0936b..90dfbd1a26 100644 --- a/.github/workflows/merge-only-when-ready.yml +++ b/.github/workflows/merge-only-when-ready.yml @@ -6,8 +6,13 @@ on: jobs: allow-merge: - if: contains(github.event.pull_request.labels.*.name, 'ready-to-merge') runs-on: ubuntu-latest steps: - name: PR is ready to merge - run: true + - uses: actions/github-script@v6 + with: + script: | + const labels = ${{ toJSON(github.event.pull_request.labels) }} + for (const label of labels) { + console.log(label) + }