Sync Releases and Tags #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync Releases and Tags | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' # 每天运行一次 | |
push: | |
tags: | |
- '*' | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: pip install requests | |
- name: Sync Tags and Releases | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SOURCE_REPO: o0HalfLife0o/TVBoxOSC | |
TARGET_REPO: amclubs/iptv-tvbox | |
run: | | |
python sync.py |