Skip to content

Update Cursor Download Links #2050

Update Cursor Download Links

Update Cursor Download Links #2050

name: Update Cursor Download Links
on:
schedule:
- cron: '0 * * * *' # Run hourly at minute 0
workflow_dispatch: # Allow manual triggering
permissions:
contents: write
jobs:
update-links:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Run update script
run: bun src/update-cursor-links.ts
- name: Check for changes
id: git-check
run: |
git diff --exit-code || echo "changes=true" >> $GITHUB_OUTPUT
- name: Commit and push if changed
if: steps.git-check.outputs.changes == 'true'
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add README.md version-history.json
git commit -m "Update Cursor download links"
git push