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) + }