Files
sencho/.github/workflows/release-blog-scaffold.yml
T
dependabot[bot] f00ed71988 chore(deps): bump the all-actions group with 4 updates (#1039)
Bumps the all-actions group with 4 updates: [actions/create-github-app-token](https://github.com/actions/create-github-app-token), [github/codeql-action](https://github.com/github/codeql-action), [actions/dependency-review-action](https://github.com/actions/dependency-review-action) and [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer).


Updates `actions/create-github-app-token` from 3.1.1 to 3.2.0
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Changelog](https://github.com/actions/create-github-app-token/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/create-github-app-token/compare/1b10c78c7865c340bc4f6099eb2f838309f1e8c3...bcd2ba49218906704ab6c1aa796996da409d3eb1)

Updates `github/codeql-action` from 4.35.3 to 4.35.4
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/e46ed2cbd01164d986452f91f178727624ae40d7...68bde559dea0fdcac2102bfdf6230c5f70eb485e)

Updates `actions/dependency-review-action` from 4.9.0 to 5.0.0
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](https://github.com/actions/dependency-review-action/compare/2031cfc080254a8a887f58cffee85186f0e49e48...a1d282b36b6f3519aa1f3fc636f609c47dddb294)

Updates `sigstore/cosign-installer` from 4.1.1 to 4.1.2
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/cad07c2e89fa2edd6e2d7bab4c1aa38e53f76003...6f9f17788090df1f26f669e9d70d6ae9567deba6)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-version: 3.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-actions
- dependency-name: github/codeql-action
  dependency-version: 4.35.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-actions
- dependency-name: actions/dependency-review-action
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all-actions
- dependency-name: sigstore/cosign-installer
  dependency-version: 4.1.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anso <dev@saelix.com>
2026-05-14 10:20:25 -04:00

98 lines
3.2 KiB
YAML

name: Release Blog Scaffold
# Fires on every v* tag push. Computes whether this tag completes the next
# every-5th-release window (source of truth = the latest post with a version:
# field in the sencho-website repo). If yes, generates a complete, TODO-free
# blog post and commits it directly to sencho-website main. No PR is opened.
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
tag:
description: 'Tag to scaffold against (e.g. v0.58.0). Must already exist.'
required: true
type: string
permissions:
contents: read
jobs:
scaffold:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
# Same App-token pattern as release-please.yml. The app's installation
# must include both Sencho and sencho-website for the push + PR to work.
- name: Generate GitHub App installation token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: |
Sencho
sencho-website
permission-contents: write
- name: Resolve target tag
id: target
run: |
set -euo pipefail
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
tag="${{ inputs.tag }}"
else
tag="${GITHUB_REF_NAME}"
fi
echo "tag=${tag}" >> "$GITHUB_OUTPUT"
echo "Resolved target tag: ${tag}"
- name: Check out Sencho (full history for tags)
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
- name: Check out sencho-website
uses: actions/checkout@v6
with:
repository: ${{ github.repository_owner }}/sencho-website
token: ${{ steps.app-token.outputs.token }}
path: website-repo
fetch-depth: 1
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: '20'
- name: Run scaffold script
id: scaffold
run: |
set -euo pipefail
node .github/scripts/scaffold-release-post.mjs \
--tag "${{ steps.target.outputs.tag }}" \
--changelog CHANGELOG.md \
--website website-repo
- name: Commit and push release post to sencho-website
if: steps.scaffold.outputs.scaffold == 'true'
env:
TAG: ${{ steps.target.outputs.tag }}
POST_PATH: ${{ steps.scaffold.outputs.post_path }}
run: |
set -euo pipefail
cd website-repo
git config user.name "sencho-release-bot[bot]"
git config user.email "sencho-release-bot[bot]@users.noreply.github.com"
git add "${POST_PATH}" src/data/blog/index.ts src/data/blog/meta.ts
git commit -m "chore(blog): auto-publish release post for ${TAG}"
git push origin main
- name: Report skip
if: steps.scaffold.outputs.scaffold != 'true'
run: |
echo "No scaffold this run. Window did not reach the next every-5th-release anchor."