Skip to content

Release

Release #207

Workflow file for this run

---
name: Release
on:
release:
types: [published]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
vars:
name: Set Variables
outputs:
pr: ${{ steps.pr.outputs.pr }}
release-name: ${{ steps.release-name.outputs.release-name }}
runs-on: ubuntu-22.04
timeout-minutes: 1
steps:
# Get PR number for squash merges to main
- name: Get PR Number From Event
run: |
pr=$(\
curl -sL -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ inputs.token }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/search/issues\?q\=repo:${{ github.repository }}+is:pr+is:merged \
| jq .items[0].number
)
echo $pr