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
11 changes: 11 additions & 0 deletions .github/workflows/changelog-fragments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: Path to the pinned sdk-rust checkout; use '.' in sdk-rust itself
required: true
type: string
sdk-rust-revision:
description: Optional pinned SDK Rust revision to check out at sdk-rust-path for repositories without a Core submodule
default: ''
type: string
fragments-directory:
description: Repository-relative directory containing category folders
default: changelog
Expand Down Expand Up @@ -39,6 +43,13 @@ jobs:
with:
fetch-depth: 0
submodules: true
- name: Check out shared changelog tool
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
if: steps.override.outputs.skip != 'true' && inputs.sdk-rust-revision != ''
with:
repository: temporalio/sdk-rust
ref: ${{ inputs.sdk-rust-revision }}
path: ${{ inputs.sdk-rust-path }}
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
if: steps.override.outputs.skip != 'true'
- name: Require and validate category fragments
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ permissions, and the `skip-changelog` override. Pin the workflow to a reviewed
commit, and update the caller's sdk-rust pin to a revision containing the tool
before switching workflows.

Repositories without a Core submodule can pass `sdk-rust-revision` with a pinned
SDK Rust commit and set `sdk-rust-path` to a separate directory, such as
`.changelog-tool`. The workflow checks out that revision there and builds only
the shared changelog CLI. Existing submodule callers omit this input.


## Why do this

Expand Down
Loading