Skip to content

Update main.yml

Update main.yml #2

Workflow file for this run

name: Update Chinese EPG File
on:
workflow_dispatch:
schedule:
- cron: '30 * * * *'
push:
branches:
- master
jobs:
update:
runs-on: ubuntu-latest
steps:

Check failure on line 15 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
- name: set variables
run: |
echo "UPDATE_TIME=$(TZ='Asia/Shanghai' date +%Y-%m-%d\ %H:%M\ %Z)" >> $GITHUB_ENV
- name: set up python 3
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: prepare release
uses: actions/checkout@v2
with:
path: release
ref: master
/*- name: prepare generater */
uses: actions/checkout@v2
with:
repository: BurningC4/getepg
ssh-key: ${{ secrets.GETEPG }}
path: getepg
ref: main
- name: get new epg file
run: |
sudo pip3 install -r getepg/requirements.txt
sudo python3 getepg/getepg.py --file release/guide.xml
- name: push release
run: |
git -C release config --local user.name github-actions
git -C release config --local user.email [email protected]
git -C release add guide.xml
git -C release commit -m "auto update at ${{ env.UPDATE_TIME }}" --allow-empty
git -C release push