salt/.github/actions/get-pull-labels/action.yml
Charles McMarrow 8dc6dd61d2
[3006.x] rebase test labels (#64053)
* changelog

* add actions

* add tools

* typo

* add some debug

* pulls vs push

* fire on pullr only

* test port part 1

* part 2

* part 3

* part 4

* fix double run slow

* clean up

* update types

* reg workflow

* reg workflow
2023-04-15 18:19:58 -07:00

23 lines
487 B
YAML

---
name: get-pull-labels
description: Get Pull Labels
inputs:
pull-request:
type: string
outputs:
labels:
value: ${{ steps.get-pull-labels.outputs.labels }}
runs:
using: composite
steps:
- name: Get Pull Labels
id: get-pull-labels
shell: bash
env:
PULL_REQUEST: ${{ inputs.pull-request }}
run: |
labels=$(jq -c '[.labels[].name]' <<< $PULL_REQUEST)
echo $labels
echo "labels=$labels" >> "$GITHUB_OUTPUT"