Sync GitHub stars with Raindrop #1372
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Sync GitHub stars with Raindrop" | |
on: | |
schedule: | |
# Runs every hour at minute 0 | |
- cron: "0 * * * *" | |
# on: | |
# push: | |
# branches: [main] | |
jobs: | |
build-and-run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
- run: npm ci | |
- name: Build | |
run: npm run build | |
- name: run script | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
RAINDROP_TOKEN: ${{ secrets.RAINDROP_TOKEN }} | |
RAINDROP_COLLECTION_ID: ${{ secrets.RAINDROP_COLLECTION_ID }} | |
run: node src/script.js |