For the life of me I cannot figure this out. What exactly is value of github.event.pull_request.labels? Based on the developer guide, it should be an array of objects, but here, it prints Array, and no matter how I try to loop it in Bash, it prints Array. Is it literally the string "Array"? So how do I find out specific labels that have been applied to a specific pull request? name: test
on:
pull_request:
branches:
- master
types: [labeled]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: current branch
run: |
array = ${{ github.event.pull_request.labels }}
echo "${array[*]}"
... View more