Files
MapLibreParticleLab/.github/actions/get-pr-number/action.yml
2024-02-26 14:34:01 +02:00

19 lines
473 B
YAML

name: 'get-pr-number'
description: 'Gets the PR number from an artifact'
outputs:
pr-number:
description: "PR number or empty string"
value: ${{ steps.cat.outputs.pr-number }}
runs:
using: "composite"
steps:
- uses: ./.github/actions/download-workflow-run-artifact
with:
artifact-name: pr-number
- run: touch ./pr_number
shell: bash
- id: cat
run: echo pr-number="$(cat ./pr_number)" >> $GITHUB_OUTPUT
shell: bash