Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/release-prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ on:
description: "Commit SHA to plan from (defaults to the default-branch head)"
required: false
type: string
dryRun:
description: "Plan only: compute the version and notes, open no release PR"
required: false
type: boolean
default: false

permissions: {}

Expand All @@ -41,7 +46,7 @@ jobs:
permissions:
contents: write
pull-requests: write
uses: chhoumann/obsidian-plugin-workflows/.github/workflows/release-prepare.yml@ebcf84b80dc48ba15e0eec1f3575d41519a78ed5 # v4
uses: chhoumann/obsidian-plugin-workflows/.github/workflows/release-prepare.yml@149e37801b35c120660a1fd5e78a5471fda55726 # v4.1.0
with:
plugin-name: podnotes
package-manager: npm
Expand All @@ -52,6 +57,6 @@ jobs:
target-sha: ${{ github.event.workflow_run.head_sha || inputs.targetSha }}
release-bot-app-slug: podnotes-release-bot
app-id: ${{ vars.RELEASE_APP_ID }}
# dry-run: true # plan only; skip opening the PR (smoke test)
dry-run: ${{ inputs.dryRun == true }}
secrets:
release-app-private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
2 changes: 1 addition & 1 deletion .github/workflows/release-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
actions: write
contents: write
pull-requests: read
uses: chhoumann/obsidian-plugin-workflows/.github/workflows/release-validate.yml@ebcf84b80dc48ba15e0eec1f3575d41519a78ed5 # v4
uses: chhoumann/obsidian-plugin-workflows/.github/workflows/release-validate.yml@149e37801b35c120660a1fd5e78a5471fda55726 # v4.1.0
with:
pr-number: ${{ github.event.pull_request.number || inputs.pr-number }}
plugin-name: podnotes
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
contents: write
id-token: write
pull-requests: read
uses: chhoumann/obsidian-plugin-workflows/.github/workflows/release.yml@ebcf84b80dc48ba15e0eec1f3575d41519a78ed5 # v4
uses: chhoumann/obsidian-plugin-workflows/.github/workflows/release.yml@149e37801b35c120660a1fd5e78a5471fda55726 # v4.1.0
with:
release-pr: ${{ inputs.releasePr }}
plugin-name: podnotes
Expand Down
6 changes: 4 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ when the GitHub release is public, its tag points at the release commit, and
`main.js` and `manifest.json` match their recorded SHA-256 digests.

Three workflows in `.github/workflows/` call reusable workflows in
`chhoumann/obsidian-plugin-workflows` pinned to v4
(`ebcf84b80dc48ba15e0eec1f3575d41519a78ed5`):
`chhoumann/obsidian-plugin-workflows` pinned to v4.1.0
(`149e37801b35c120660a1fd5e78a5471fda55726`):

1. `Prepare release` (`release-prepare.yml`) runs after a green `Test` push run
on `master`, or by `workflow_dispatch` with an optional `targetSha`. It skips
Expand All @@ -331,6 +331,8 @@ Three workflows in `.github/workflows/` call reusable workflows in
`release(version): Release <version>`, with the generated notes in its body.
It changes exactly `package.json`, `package-lock.json`, `manifest.json`, and
`versions.json`. Release PRs that a newer plan supersedes are closed.
Dispatch it with `dryRun` set to `true` to plan without opening or
refreshing the release PR.
2. `Trigger release` (`release-trigger.yml`) runs on `pull_request_target`
`closed` for a merged `release/*` PR into `master`. It validates the bot
author, branch, title, exact version-file diff, merger, squash parent, and
Expand Down
Loading