From c84144581dfe87ccb6768d7f4e376977c827b69d Mon Sep 17 00:00:00 2001 From: snomiao Date: Wed, 29 Oct 2025 11:00:37 +0000 Subject: [PATCH] [fix] Remove copied scripts before git checkout to avoid conflicts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Clean up scripts/snapshot-api.js and scripts/compare-api-snapshots.js before checkout - Fixes untracked working tree files conflict when returning to current version 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/release-api-changelogs.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release-api-changelogs.yaml b/.github/workflows/release-api-changelogs.yaml index 6ffb1d3fb..10c5aca66 100644 --- a/.github/workflows/release-api-changelogs.yaml +++ b/.github/workflows/release-api-changelogs.yaml @@ -129,6 +129,9 @@ jobs: - name: Return to current version if: steps.previous_version.outputs.tag != '' run: | + # Remove copied scripts to avoid conflicts + rm -f scripts/snapshot-api.js scripts/compare-api-snapshots.js + git checkout - git stash pop || true