-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.02 KB
/
daily.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
37
38
39
40
41
name: Titles expiring on Netflix
on:
schedule:
- cron: '00 8 * * *'
workflow_dispatch:
jobs:
titles-expiring:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/[email protected]
- name: Setup Python Environment
uses: actions/[email protected]
with:
python-version: "3.10"
- name: Install Requirements
run: pip install -r requirements.txt
- name: Get Leaving Titles JSON
run: python ntflx-leaving.py
env:
XRAPIDAPIHOST: ${{ secrets.XRAPIDAPIHOST }}
XRAPIDAPIKEY: ${{ secrets.XRAPIDAPIKEY }}
- name: Get Daily Date
id: date
run: echo "date=$(date +'%Y%m%d')" >> $GITHUB_ENV
- name: Commit changes
uses: stefanzweifel/[email protected]
with:
commit_message: Daily-${{ env.date }}
push_options: '--force'
skip_dirty_check: true
skip_fetch: true
skip_checkout: true
disable_globbing: true