Initial commit with current files only
This commit is contained in:
29
.github/workflows/fetch-playlist.yml
vendored
Normal file
29
.github/workflows/fetch-playlist.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Update EPG
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# Runs once a day at midnight
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
# Add a manual trigger
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
update-files:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository (no history)
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Download epg.xml
|
||||
run: curl -o epg.xml ${{ secrets.EPG_URL }}
|
||||
|
||||
- name: Force commit and push the changes (no history)
|
||||
run: |
|
||||
git config --global user.name "actions-user"
|
||||
git config --global user.email "actions@github.com"
|
||||
git add epg.xml
|
||||
git commit -m "Update EPG"
|
||||
git push --force # Force push to overwrite the previous commit
|
||||
Reference in New Issue
Block a user