From 068abb5e38ed6c49b472a2881f02875911929f3d Mon Sep 17 00:00:00 2001 From: Kent Huang Date: Tue, 13 Oct 2026 22:08:42 +0800 Subject: [PATCH] ci: dogfood workflow revision with Action v0.1 Signed-off-by: Kent Huang --- .github/workflows/behavior-diff.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/behavior-diff.yml b/.github/workflows/behavior-diff.yml index 23b65c5..16a5b0a 100644 --- a/.github/workflows/behavior-diff.yml +++ b/.github/workflows/behavior-diff.yml @@ -1,5 +1,5 @@ # Dogfood Behavior Diff on instruction-file PRs with spacedock-dev/behavior-diff-action. -# Based on the action's examples/behavior-diff.yml, pinned to v0.1.1's commit. +# Uses the v0.1 Action with this workflow's exact core revision. # Paid model run: needs the CLAUDE_CODE_OAUTH_TOKEN secret in the protected # `behavior-diff` environment. Repo is public, so `publication: comment` makes # reports public. @@ -58,10 +58,13 @@ jobs: matrix: ${{ steps.prepare.outputs.matrix }} status: ${{ steps.prepare.outputs.status }} steps: - - uses: spacedock-dev/behavior-diff-action@d0ca905940bf694ad2fe6738fe10464e9a7e9628 # v0.1.1 + - uses: spacedock-dev/behavior-diff-action@v0.1 id: prepare with: mode: prepare + # PR event: merge commit; comment: default branch; dispatch: selected ref. + # Freeze once here; run/publish inherit it through selection. + core-ref: ${{ github.sha }} trust-policy: same-repository publication: comment pr: ${{ inputs.pr }} @@ -83,7 +86,7 @@ jobs: max-parallel: 1 matrix: ${{ fromJSON(needs.prepare.outputs.matrix) }} steps: - - uses: spacedock-dev/behavior-diff-action@d0ca905940bf694ad2fe6738fe10464e9a7e9628 # v0.1.1 + - uses: spacedock-dev/behavior-diff-action@v0.1 env: CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} with: @@ -111,7 +114,7 @@ jobs: max-parallel: 1 matrix: ${{ fromJSON(needs.prepare.outputs.matrix) }} steps: - - uses: spacedock-dev/behavior-diff-action@d0ca905940bf694ad2fe6738fe10464e9a7e9628 # v0.1.1 + - uses: spacedock-dev/behavior-diff-action@v0.1 with: mode: publish selection: ${{ toJSON(matrix) }}