Skip to content

ci: generate baseline benchmark projects with the baseline release generator #1441

ci: generate baseline benchmark projects with the baseline release generator

ci: generate baseline benchmark projects with the baseline release generator #1441

name: Pull Request Metadata
run-name: >-
${{ inputs.request_id && format('{0} [{1}]', github.workflow, inputs.request_id)
|| github.event.pull_request.title || github.event.head_commit.message || github.workflow }}
on:
pull_request:
types: [opened, edited, synchronize, reopened]
workflow_dispatch:
inputs:
pr_number:
description: Pull request number to validate
required: true
type: number
request_id:
description: "Release Please attempt that dispatched this run; leave empty for manual runs"
required: false
type: string
permissions:
contents: read
pull-requests: read
jobs:
validate:
name: Pull Request Metadata
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Resolve pull request metadata
env:
EVENT_NAME: ${{ github.event_name }}
GH_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ inputs.pr_number }}
run: |
if [[ "${EVENT_NAME}" == "pull_request" ]]; then
cp "${GITHUB_EVENT_PATH}" "${RUNNER_TEMP}/pull-request.json"
else
gh api "repos/${GITHUB_REPOSITORY}/pulls/${PR_NUMBER}" \
> "${RUNNER_TEMP}/pull-request.json"
fi
- name: Validate branch, title, and description
env:
PR_METADATA_PATH: ${{ runner.temp }}/pull-request.json
run: python -m scripts.validate_pr_metadata --metadata-file "${PR_METADATA_PATH}"