Skip to content

Commit

Permalink
#1763 echo all PR labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Strzebonski committed Jun 24, 2022
1 parent 8e3bb21 commit c9769fe
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/merge-only-when-ready.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit c9769fe

Please sign in to comment.