-
Notifications
You must be signed in to change notification settings - Fork 165
36 lines (32 loc) Β· 1.39 KB
/
refetch-podcast-episodes.yml
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
30
31
32
33
34
35
36
# βοΈ Description:
# This action will check spotify API and check for the last podcasts episodes and add them to the database
# Should be run on a schedule, e.g. every day at 1am and update the metadata for 10 repos at a time
name: Refetch podcasts episodes (Spotify)
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
refetch-podcasts-episodes:
name: Refetch podcasts episodes
runs-on: ubuntu-latest
timeout-minutes: 4
steps:
- name: π¦ Checkout project repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: π¦ Setupbun + install deps
uses: ./.github/actions/setup-bun-and-install
- name: πββοΈ Refetch podcasts episodes
run: bun run refetch-podcasts-episodes
env:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL: ${{ secrets.NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL }}
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL: ${{ secrets.NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL }}
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
XATA_BRANCH: ${{ secrets.XATA_BRANCH }}
XATA_API_KEY: ${{ secrets.XATA_API_KEY }}
G_API_TOKEN: ${{ secrets.G_API_TOKEN }}
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }}
SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }}