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
30 lines
651 B
YAML
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"
|