Access all labels from action when issue labeled

Hi everyone,

I would like to access all the labels of an issue when a new label is added to it in a GitHub Action. This is my job before trying (this works):

on:
  issues:
    types: [ labeled ]

jobs:
  notify:
    runs-on: ubuntu-latest
    steps:
      - name: "Determine which team to notify"
        run: |
          echo "${{ github.event.label.name }} label added"

And this is what I tried:

on:
  issues:
    types: [ labeled ]

jobs:
  notify:
    runs-on: ubuntu-latest
    steps:
      - name: "Determine which team to notify"
        run: |
          echo "${{ github.event.label.name }} label added"
          for label in "${{ github.event.issue.labels[@] }}"; do
            echo $label
          done

This leads to the error bad substitution. I also tried using this:

          for label in "${github.event.issue.labels[@]}"; do
            echo $label
          done

but then I get the output Array.

Is what I want to do possible? Accessing all labels would allow me to send more descriptive Slack messages later in the action.