Skip to content

ru-release

Create a GitHub Release with generated notes for a tag.

ru-release.yml creates the release with action-gh-release and generate_release_notes: true, so the notes list the pull requests merged since the previous tag. It attaches no build artifacts; firmware repositories use ru-release-with-artifacts in hf-espidf-ci-tools.

Caller

on:
  push:
    tags: ["v*"]

jobs:
  release:
    uses: hardfoc/hf-general-ci-tools/.github/workflows/ru-release.yml@v1
    permissions:
      contents: write

Jobs and permissions

Job Permissions Steps
release (Create Release) contents: write Checkout code; Create Release

Inputs

Input Type Default Description
draft boolean false Create as draft release
prerelease boolean false Mark as pre-release
tag_name string empty Tag name for release (defaults to github.ref_name)

When it fails

Symptom Cause Fix
"Resource not accessible by integration" The caller grants contents: read Grant contents: write
The release has the branch name as its tag It ran on a branch push without tag_name Trigger it on tags, or pass tag_name
Empty release notes No pull requests since the previous tag Expected; edit the release by hand if needed