Files
epg/.github/workflows/auto-update.yml
Workflow config file is invalid. Please check your config file: yaml: line 12: mapping values are not allowed in this context
Aleksandr Statciuk 9464fed11b Create auto-update.yml
2021-03-10 01:20:09 +03:00

38 lines
1021 B
YAML

name: auto-update
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: npm install
- name: Format Playlists
run: node scripts/format.js
- name: Commit Changes
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git diff-index --quiet HEAD || git commit -m "[Bot] Format playlists"
git push
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Update Guide
run: ./run.sh
- name: Commit Changes
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git diff-index --quiet HEAD || git commit -m "[Bot] Update Guide"
git pull
git push