Skip to content

Merge pull request #19 from rtbot-dev/release-please--branches--main #56

Merge pull request #19 from rtbot-dev/release-please--branches--main

Merge pull request #19 from rtbot-dev/release-please--branches--main #56

Workflow file for this run

name: Release Please
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
release-please:
name: Create Release Pull Request
runs-on: ubuntu-latest
steps:
- id: release
uses: googleapis/release-please-action@v4
- name: Checkout repository
if: steps.release.outputs.release_created == 'true'
uses: actions/checkout@v4
- name: Enrich release notes with install instructions
if: steps.release.outputs.release_created == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ steps.release.outputs.tag_name }}
VERSION: ${{ steps.release.outputs.version }}
REPOSITORY: ${{ github.repository }}
run: |
set -euo pipefail
python tools/update_release_notes.py \
--repo "${REPOSITORY}" \
--tag "${TAG_NAME}" \
--version "${VERSION}"
gh release edit "${TAG_NAME}" --notes-file release-body.md