diff --git a/.github/workflows/merge-only-when-ready.yml b/.github/workflows/merge-only-when-ready.yml index 091af0936b..c6ee8d6247 100644 --- a/.github/workflows/merge-only-when-ready.yml +++ b/.github/workflows/merge-only-when-ready.yml @@ -6,8 +6,10 @@ 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: | + script: console.log(context.pull_request.labels)