Rename workflow and update commit message format

This commit is contained in:
Vlastimil Novotný 2026-07-03 17:17:31 +02:00 • committed by GitHub
parent f6b649c2ec
commit 22522cf2c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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