fix(ci): refresh AppImage hashes when Cursor version is unchanged

Cursor can republish the same semver with a new build; the updater
previously skipped prefetch when the version matched, leaving stale
sha256 values. In CI, always re-prefetch and commit when flake.nix drifts.
This commit is contained in:
2026-06-02 23:03:37 -03:00
parent 1104372b0b
commit fe9d8ba55a
2 changed files with 42 additions and 15 deletions
+9 -3
View File
@@ -12,9 +12,11 @@ concurrency:
jobs:
update-cursor:
runs-on: ubuntu-latest
env:
CI: true
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
@@ -65,9 +67,13 @@ jobs:
# Create commit message based on version info
if [[ "$VERSION_INFO" == completed:* ]]; then
# Extract version from format: completed:old_version:new_version
OLD_VERSION=$(echo "$VERSION_INFO" | cut -d: -f2)
NEW_VERSION=$(echo "$VERSION_INFO" | cut -d: -f3)
COMMIT_MSG="Update Cursor to version $NEW_VERSION"
if [[ "$OLD_VERSION" == "$NEW_VERSION" ]]; then
COMMIT_MSG="Refresh Cursor $NEW_VERSION AppImage hashes"
else
COMMIT_MSG="Update Cursor to version $NEW_VERSION"
fi
else
COMMIT_MSG="Update Cursor to latest version"
fi