Skip to content

test issue labels action #3

test issue labels action

test issue labels action #3

name: assign-from-label
on:
issues:
types:
- labeled
pull_request:
types:
- labeled
jobs:
assign-from-label:
runs-on: ubuntu-latest
steps:
- uses: pietrobolcato/[email protected]
id: metadata
with:
config: .github/assets/user-labels.yml
- name: echo
run: |
echo ${{ github.event.label.name }}
echo ${{ steps.metadata.outputs[github.event.label.name] }}
echo ${{ steps.metadata.outputs['POC: Phil'] }}
- name: assign
if: ${{ steps.metadata.outputs[github.event.label.name] }} != ""
run: |
echo "will assign user ${{ steps.metadata.outputs[github.event.label.name] }}"