mirror of
https://github.com/iptv-org/iptv
synced 2026-03-22 03:41:39 -04:00
Update workflow
This commit is contained in:
32
.github/workflows/format.yml
vendored
Normal file
32
.github/workflows/format.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Format Playlists
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- 'channels/*'
|
||||
- 'index.m3u'
|
||||
|
||||
jobs:
|
||||
generate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Format Playlists
|
||||
run: npm run format --epg
|
||||
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v1.5.1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
COMMIT_MESSAGE: 'Format playlists'
|
||||
PULL_REQUEST_BRANCH: bot-patch
|
||||
PULL_REQUEST_TITLE: '[Bot] Format playlists'
|
||||
PULL_REQUEST_BODY: >
|
||||
This pull request is auto-generated by GitHub action.
|
||||
Reference in New Issue
Block a user