forked from eramdam/starry-raindrop
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (26 loc) · 680 Bytes
/
main.yml
File metadata and controls
29 lines (26 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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