Sync Releases and Tags #90
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: bia-pain-bache/BPB-Worker-Panel | |
TARGET_REPO: ansoncloud8/BPB-Worker-Panel | |
run: | | |
python sync.py |