This commit is contained in:
oslook
2025-07-30 13:25:47 +08:00
parent e1642c28ea
commit be91ffb2db

View File

@@ -14,6 +14,14 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: oslook/cursor-download-hub
token: ${{ secrets.API_TOKEN_GITHUB }}
ref: main
path: output/cursor-download-hub
- name: Set up Node.js
uses: actions/setup-node@v3
@@ -43,4 +51,20 @@ jobs:
git config --global user.name "GitHub Actions"
git add README.md version-history.json
git commit -m "Update Cursor download links"
git push
git push
- name: copy file
run: cp -rf version-history.json output/cursor-download-hub/public/
- name: Pushes to another repository
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: 'output/cursor-download-hub'
destination-github-username: "oslook"
destination-repository-name: 'cursor-download-hub'
user-email: 41898282+github-actions[bot]@users.noreply.github.com
user-name: github-actions[bot]
commit-message: 'Auto updated'
target-branch: main