mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00

* 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
23 lines
487 B
YAML
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"
|