Titles expiring on Netflix #1033
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: 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 |