Skip to content

build: migrate template docs from mkdocs to zensical #6

build: migrate template docs from mkdocs to zensical

build: migrate template docs from mkdocs to zensical #6

Workflow file for this run

# This file is @generated by <https://github.com/liblaf/copier-release>.
# DO NOT EDIT!
name: Release > PR
on:
push:
branches:
- main
env:
GIT_CLIFF_CONFIG_URL: https://raw.githubusercontent.com/liblaf/copier-release/refs/heads/main/cliff.toml
concurrency:
group: ${{ github.workflow }} @ ${{ github.ref }}
cancel-in-progress: true
jobs:
release-pr:
name: Create PR
permissions:
contents: write
issues: write
pull-requests: write
runs-on: ubuntu-latest
environment:
name: Release Please
deployment: false
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
- name: Install git-cliff
uses: taiki-e/install-action@fd0f63e180a477d7434580b6d80817978b9ff2b8 # v2
with:
tool: git-cliff
- id: version
name: Next version
uses: liblaf/actions/next-version@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
- if: steps.version.outputs.bumped == 'true'
name: Generate changelog
run: |-
git-cliff
npx prettier --write --no-config "$GIT_CLIFF_OUTPUT"
env:
GIT_CLIFF_CONFIG_URL: ${{ env.GIT_CLIFF_CONFIG_URL }}
GIT_CLIFF_OUTPUT: CHANGELOG.md
GIT_CLIFF_TAG: ${{ steps.version.outputs.tag }}
GITHUB_TOKEN: ${{ steps.auth.outputs.token }}
- if: steps.version.outputs.bumped == 'true'
name: Generate PR body
run: |-
git-cliff --unreleased --strip all
npx prettier --write --no-config "$GIT_CLIFF_OUTPUT"
env:
GIT_CLIFF_CONFIG_URL: ${{ env.GIT_CLIFF_CONFIG_URL }}
GIT_CLIFF_OUTPUT: ${{ runner.temp }}/body.md
GIT_CLIFF_TAG: ${{ steps.version.outputs.tag }}
GITHUB_TOKEN: ${{ steps.auth.outputs.token }}
- if: steps.version.outputs.bumped == 'true'
name: Create PR
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8
with:
token: ${{ steps.auth.outputs.token }}
commit-message: "chore(release): ${{ steps.version.outputs.tag }}"
branch: release-please
delete-branch: true
sign-commits: true
title: "chore(release): ${{ steps.version.outputs.tag }}"
body-path: ${{ runner.temp }}/body.md
labels: |-
automerge
release-please
assignees: ${{ github.repository_owner }}
reviewers: ${{ github.repository_owner }}