Skip to content

Latest commit

 

History

History
25 lines (13 loc) · 1.09 KB

File metadata and controls

25 lines (13 loc) · 1.09 KB

Workflows

To automate running the scripts, we use GitHub Actions workflows.

Each workflow includes its own set of scripts that can be run either manually or in response to a repository event.

check

Sequentially runs the api:load, playlist:lint, and playlist:validate scripts whenever a new pull request is opened, blocking the merge if it detects any errors.

deploy

Every time the master branch is updated, it runs the db:export script and pushes the resulting files to the iptv-org/api repository.

update

Runs every day at 0:00 UTC. It sequentially executes the db:update and db:validate scripts, then automatically deploys the updated files if successful.

validate_issue

Runs when an issue is opened or edited. It checks the requests for errors using issue:validate script and, if any are found, the bot posts them in the comments.

validate_label

Triggers when a new label is added to an issue. It checks the label, and if it's incorrect, the bot deletes it and leaves a comment explaining why.