mirror of
https://github.com/theariatv/theariatv.github.io.git
synced 2026-11-20 06:38:28 +01:00
Rename workflow and update commit message format
This commit is contained in:
parent
f6b649c2ec
commit
22522cf2c7
1 changed files with 14 additions and 5 deletions
19
.github/workflows/update_playlist.yml
vendored
19
.github/workflows/update_playlist.yml
vendored
|
|
@ -1,11 +1,18 @@
|
||||||
name: Weekly IPTV Channels Update
|
name: Sync M3U to Markdown
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
# Spustí se POUZE, když se upraví tyto konkrétní soubory
|
||||||
|
paths:
|
||||||
|
- 'aria.m3u'
|
||||||
|
- 'aria+.m3u'
|
||||||
|
- 'updater.py'
|
||||||
schedule:
|
schedule:
|
||||||
# Runs automatically every Monday at 00:00 UTC
|
# Nechal jsem ti tu i ten cron, kdybys chtěl pravidelnou pojistku
|
||||||
- cron: '0 0 * * 1'
|
- cron: '0 0 * * 1'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
# Allows manual triggering from the GitHub interface
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
@ -13,6 +20,8 @@ permissions:
|
||||||
jobs:
|
jobs:
|
||||||
update-channels:
|
update-channels:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
# DŮLEŽITÉ: Ochrana proti nekonečné smyčce
|
||||||
|
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|
@ -36,6 +45,6 @@ jobs:
|
||||||
git add -A channels/
|
git add -A channels/
|
||||||
|
|
||||||
# If there are no changes, git commit will fail.
|
# If there are no changes, git commit will fail.
|
||||||
# "|| echo" prevents the workflow from failing.
|
# Přidal jsem [skip ci] do zprávy, aby to nespouštělo další zbytečné akce!
|
||||||
git commit -m "Auto-update playlists in the channels directory" || echo "No changes to commit"
|
git commit -m "chore: auto-update markdowns from m3u [skip ci]" || echo "No changes to commit"
|
||||||
git push
|
git push
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue