salt/.github/actions/get-pull-request/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

30 lines
651 B
YAML

---
name: get-pull-request
description: Get Pull Request
inputs:
owner:
type: string
repo:
type: string
pull-number:
type: number
outputs:
pull-request:
value: ${{ steps.get-pull-request.outputs.request }}
runs:
using: composite
steps:
- name: Get Pull Request
id: get-pull-request
shell: bash
env:
GITHUB_OWNER: ${{ inputs.owner }}
GITHUB_REPO: ${{ inputs.repo }}
GITHUB_PULL_NUMBER: ${{ inputs.pull-number }}
run: |
pull=$(gh api repos/$GITHUB_OWNER/$GITHUB_REPO/pulls/$GITHUB_PULL_NUMBER)
echo $pull
echo "request=$pull" >> "$GITHUB_OUTPUT"