-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (50 loc) · 1.56 KB
/
apple_openpodcast.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Apple Open Podcast Import
on:
repository_dispatch:
workflow_dispatch:
inputs:
start:
description: "Start date"
required: false
type: string
end:
description: "End date"
required: false
type: string
schedule:
- cron: "45 11 * * *"
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./apple
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Run Connector
run: make run
env:
APPLE_AUTOMATION_ENDPOINT: https://apple-automation.openpodcast.dev/cookies
APPLE_AUTOMATION_BEARER_TOKEN: ${{ secrets.APPLE_AUTOMATION_BEARER_TOKEN }}
OPENPODCAST_API_ENDPOINT: https://api.openpodcast.dev
OPENPODCAST_API_TOKEN: ${{ secrets.OPENPODCAST_API_TOKEN }}
APPLE_PODCAST_ID: ${{ secrets.APPLE_PODCAST_ID }}
START_DATE: ${{ inputs.start }}
END_DATE: ${{ inputs.end }}
- name: Commit data
uses: stefanzweifel/git-auto-commit-action@v4.1.2
with:
branch: ${{ github.head_ref }}
commit_message: Fetch Spotify data
commit_user_name: Open Podcast Bot
commit_user_email: bot@openpodcast.dev
commit_author: Open Podcast Bot <bot@openpodcast.dev>