* fix: restore release tests and refresh required readiness check * fix: authorize release refresh and verify workflow-only changes
30 lines
1.2 KiB
YAML
30 lines
1.2 KiB
YAML
name: Release Readiness
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
merge_group:
|
|
types: [checks_requested]
|
|
permissions: {}
|
|
concurrency:
|
|
group: release-readiness-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
readiness:
|
|
name: Release readiness
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
permissions:
|
|
contents: read
|
|
pull-requests: read
|
|
steps:
|
|
- if: github.event_name == 'merge_group' || (github.event.pull_request.head.ref == 'release-please--branches--main' && github.event.pull_request.head.repo.full_name == github.repository)
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
|
|
with:
|
|
ref: refs/heads/main
|
|
persist-credentials: false
|
|
sparse-checkout: .github/scripts
|
|
- name: Validate the release candidate and queued release tree
|
|
if: github.event_name == 'merge_group' || (github.event.pull_request.head.ref == 'release-please--branches--main' && github.event.pull_request.head.repo.full_name == github.repository)
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
run: python -I .github/scripts/release_automation.py gate
|