Skip to content

Live

Live #43

Workflow file for this run

name: Live
on:
schedule:
- cron: '25 8 * * *'
workflow_dispatch:
watch:
types: started
repository_dispatch:
types: sync-Live
jobs:
repo-sync:
env:
PAT: ${{ secrets.PAT }}
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Create new branch
uses: actions/github-script@v6
with:
script: |
await github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/heads/Live',
sha: context.sha
});
- name: sync Live
uses: repo-sync/github-sync@v2
if: env.PAT
with:
source_repo: "https://github.com/YueChan/Live"
source_branch: "main"
destination_branch: "iptv-Live"
github_token: ${{ secrets.PAT }}