Skip to content

Commit 1a11495

Browse files
ParthJadhavclaude
andcommitted
Fix release workflow: handle missing Cargo.lock and no-op version bumps
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0a53505 commit 1a11495

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ jobs:
5858
run: |
5959
git config user.name "github-actions[bot]"
6060
git config user.email "github-actions[bot]@users.noreply.github.com"
61-
git add package.json package-lock.json src-tauri/Cargo.toml src-tauri/Cargo.lock src-tauri/tauri.conf.json
62-
git commit -m "chore: bump version to ${{ inputs.version }}"
61+
git add package.json package-lock.json src-tauri/Cargo.toml src-tauri/tauri.conf.json
62+
git add src-tauri/Cargo.lock 2>/dev/null || true
63+
git diff --cached --quiet && echo "No changes to commit" || git commit -m "chore: bump version to ${{ inputs.version }}"
6364
git tag "v${{ inputs.version }}"
6465
git push origin main --tags
6566

0 commit comments

Comments
 (0)