Skip to content

Harden test suites #235

Harden test suites

Harden test suites #235

name: Release Drafter
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
inputs:
version:
description: 'Override release version (e.g., v1.1.0)'
required: false
type: string
permissions:
contents: read
jobs:
update_release_draft:
# Skip on PRs from forks: those runs get a read-only GITHUB_TOKEN, so the
# release-creation step always 403s. Still runs on push to main, same-repo
# PRs, and manual dispatch.
if: >-
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v7
with:
version: ${{ inputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}