From 778b2e571e2551fb5c4783587b736536d9c22cae Mon Sep 17 00:00:00 2001 From: longwangjiang <61648367+longwangjiang@users.noreply.github.com> Date: Sat, 29 Jun 2024 23:49:36 +0800 Subject: [PATCH] Add files via upload --- .github/workflows/CF-Workers-docker.io.yml | 47 +++++++++++++++++++ .github/workflows/CasaOS.yml | 47 +++++++++++++++++++ .github/workflows/Custom_OpenClash_Rules.yml | 47 +++++++++++++++++++ .github/workflows/Docker-Proxy.yml | 47 +++++++++++++++++++ .../workflows/GitHub-Chinese-Top-Charts.yml | 47 +++++++++++++++++++ .github/workflows/MusicFreeDesktop.yml | 47 +++++++++++++++++++ .github/workflows/WorkerVless2sub.yml | 47 +++++++++++++++++++ .github/workflows/adblockfilters.yml | 47 +++++++++++++++++++ .github/workflows/chatbox.yml | 47 +++++++++++++++++++ .github/workflows/gpt4free.yml | 47 +++++++++++++++++++ .github/workflows/open-all.yml | 47 +++++++++++++++++++ .github/workflows/psub.yml | 47 +++++++++++++++++++ .github/workflows/siyuan.yml | 47 +++++++++++++++++++ 13 files changed, 611 insertions(+) create mode 100644 .github/workflows/CF-Workers-docker.io.yml create mode 100644 .github/workflows/CasaOS.yml create mode 100644 .github/workflows/Custom_OpenClash_Rules.yml create mode 100644 .github/workflows/Docker-Proxy.yml create mode 100644 .github/workflows/GitHub-Chinese-Top-Charts.yml create mode 100644 .github/workflows/MusicFreeDesktop.yml create mode 100644 .github/workflows/WorkerVless2sub.yml create mode 100644 .github/workflows/adblockfilters.yml create mode 100644 .github/workflows/chatbox.yml create mode 100644 .github/workflows/gpt4free.yml create mode 100644 .github/workflows/open-all.yml create mode 100644 .github/workflows/psub.yml create mode 100644 .github/workflows/siyuan.yml diff --git a/.github/workflows/CF-Workers-docker.io.yml b/.github/workflows/CF-Workers-docker.io.yml new file mode 100644 index 000000000..537934eb5 --- /dev/null +++ b/.github/workflows/CF-Workers-docker.io.yml @@ -0,0 +1,47 @@ +name: CF-Workers-docker.io +on: + schedule: + - cron: '3 19 * * *' + workflow_dispatch: + repository_dispatch: + types: sync-CF-Workers-docker.io +jobs: + repo-sync: + env: + PAT: ${{ secrets.PAT }} + runs-on: ubuntu-latest + if: github.event.repository.owner.id == github.event.sender.id + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + with: + persist-credentials: false + + - name: Check if branch exists + id: check_branch + run: | + if git show-ref --verify --quiet refs/heads/CF-Workers-docker.io; then + echo "branch_exists=true" >> $GITHUB_ENV + else: + echo "branch_exists=false" >> $GITHUB_ENV + fi + + - name: Delete existing branch + if: ${{ env.branch_exists == 'true' }} + run: | + git push origin --delete CF-Workers-docker.io + + - name: Create new branch + if: ${{ env.branch_exists == 'false' }} + run: | + git checkout -b CF-Workers-docker.io + git push --set-upstream origin CF-Workers-docker.io + + - name: Sync branch + uses: repo-sync/github-sync@v2 + if: env.PAT + with: + source_repo: "https://github.com/cmliu/CF-Workers-docker.io" + source_branch: "main" + destination_branch: "CF-Workers-docker.io" + github_token: ${{ secrets.PAT }} diff --git a/.github/workflows/CasaOS.yml b/.github/workflows/CasaOS.yml new file mode 100644 index 000000000..fe32498c2 --- /dev/null +++ b/.github/workflows/CasaOS.yml @@ -0,0 +1,47 @@ +name: CasaOS +on: + schedule: + - cron: '3 0 * * *' + workflow_dispatch: + repository_dispatch: + types: sync-CasaOS +jobs: + repo-sync: + env: + PAT: ${{ secrets.PAT }} + runs-on: ubuntu-latest + if: github.event.repository.owner.id == github.event.sender.id + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + with: + persist-credentials: false + + - name: Check if branch exists + id: check_branch + run: | + if git show-ref --verify --quiet refs/heads/CasaOS; then + echo "branch_exists=true" >> $GITHUB_ENV + else: + echo "branch_exists=false" >> $GITHUB_ENV + fi + + - name: Delete existing branch + if: ${{ env.branch_exists == 'true' }} + run: | + git push origin --delete CasaOS + + - name: Create new branch + if: ${{ env.branch_exists == 'false' }} + run: | + git checkout -b CasaOS + git push --set-upstream origin CasaOS + + - name: Sync branch + uses: repo-sync/github-sync@v2 + if: env.PAT + with: + source_repo: "https://github.com/IceWhaleTech/CasaOS" + source_branch: "main" + destination_branch: "CasaOS" + github_token: ${{ secrets.PAT }} diff --git a/.github/workflows/Custom_OpenClash_Rules.yml b/.github/workflows/Custom_OpenClash_Rules.yml new file mode 100644 index 000000000..7f7513d6b --- /dev/null +++ b/.github/workflows/Custom_OpenClash_Rules.yml @@ -0,0 +1,47 @@ +name: Custom_OpenClash_Rules +on: + schedule: + - cron: '23 7 * * *' + workflow_dispatch: + repository_dispatch: + types: sync-Custom_OpenClash_Rules +jobs: + repo-sync: + env: + PAT: ${{ secrets.PAT }} + runs-on: ubuntu-latest + if: github.event.repository.owner.id == github.event.sender.id + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + with: + persist-credentials: false + + - name: Check if branch exists + id: check_branch + run: | + if git show-ref --verify --quiet refs/heads/Custom_OpenClash_Rules; then + echo "branch_exists=true" >> $GITHUB_ENV + else: + echo "branch_exists=false" >> $GITHUB_ENV + fi + + - name: Delete existing branch + if: ${{ env.branch_exists == 'true' }} + run: | + git push origin --delete Custom_OpenClash_Rules + + - name: Create new branch + if: ${{ env.branch_exists == 'false' }} + run: | + git checkout -b Custom_OpenClash_Rules + git push --set-upstream origin Custom_OpenClash_Rules + + - name: Sync branch + uses: repo-sync/github-sync@v2 + if: env.PAT + with: + source_repo: "https://github.com/Aethersailor/Custom_OpenClash_Rules" + source_branch: "main" + destination_branch: "Custom_OpenClash_Rules" + github_token: ${{ secrets.PAT }} diff --git a/.github/workflows/Docker-Proxy.yml b/.github/workflows/Docker-Proxy.yml new file mode 100644 index 000000000..b9368c7c1 --- /dev/null +++ b/.github/workflows/Docker-Proxy.yml @@ -0,0 +1,47 @@ +name: Docker-Proxy +on: + schedule: + - cron: '22 16 * * *' + workflow_dispatch: + repository_dispatch: + types: sync-Docker-Proxy +jobs: + repo-sync: + env: + PAT: ${{ secrets.PAT }} + runs-on: ubuntu-latest + if: github.event.repository.owner.id == github.event.sender.id + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + with: + persist-credentials: false + + - name: Check if branch exists + id: check_branch + run: | + if git show-ref --verify --quiet refs/heads/Docker-Proxy; then + echo "branch_exists=true" >> $GITHUB_ENV + else: + echo "branch_exists=false" >> $GITHUB_ENV + fi + + - name: Delete existing branch + if: ${{ env.branch_exists == 'true' }} + run: | + git push origin --delete Docker-Proxy + + - name: Create new branch + if: ${{ env.branch_exists == 'false' }} + run: | + git checkout -b Docker-Proxy + git push --set-upstream origin Docker-Proxy + + - name: Sync branch + uses: repo-sync/github-sync@v2 + if: env.PAT + with: + source_repo: "https://github.com/dqzboy/Docker-Proxy" + source_branch: "main" + destination_branch: "Docker-Proxy" + github_token: ${{ secrets.PAT }} diff --git a/.github/workflows/GitHub-Chinese-Top-Charts.yml b/.github/workflows/GitHub-Chinese-Top-Charts.yml new file mode 100644 index 000000000..6cb68af79 --- /dev/null +++ b/.github/workflows/GitHub-Chinese-Top-Charts.yml @@ -0,0 +1,47 @@ +name: GitHub-Chinese-Top-Charts +on: + schedule: + - cron: '17 11 * * *' + workflow_dispatch: + repository_dispatch: + types: sync-GitHub-Chinese-Top-Charts +jobs: + repo-sync: + env: + PAT: ${{ secrets.PAT }} + runs-on: ubuntu-latest + if: github.event.repository.owner.id == github.event.sender.id + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + with: + persist-credentials: false + + - name: Check if branch exists + id: check_branch + run: | + if git show-ref --verify --quiet refs/heads/GitHub-Chinese-Top-Charts; then + echo "branch_exists=true" >> $GITHUB_ENV + else: + echo "branch_exists=false" >> $GITHUB_ENV + fi + + - name: Delete existing branch + if: ${{ env.branch_exists == 'true' }} + run: | + git push origin --delete GitHub-Chinese-Top-Charts + + - name: Create new branch + if: ${{ env.branch_exists == 'false' }} + run: | + git checkout -b GitHub-Chinese-Top-Charts + git push --set-upstream origin GitHub-Chinese-Top-Charts + + - name: Sync branch + uses: repo-sync/github-sync@v2 + if: env.PAT + with: + source_repo: "https://github.com/GrowingGit/GitHub-Chinese-Top-Charts" + source_branch: "master" + destination_branch: "GitHub-Chinese-Top-Charts" + github_token: ${{ secrets.PAT }} diff --git a/.github/workflows/MusicFreeDesktop.yml b/.github/workflows/MusicFreeDesktop.yml new file mode 100644 index 000000000..3bfe37ddb --- /dev/null +++ b/.github/workflows/MusicFreeDesktop.yml @@ -0,0 +1,47 @@ +name: MusicFreeDesktop +on: + schedule: + - cron: '43 13 * * *' + workflow_dispatch: + repository_dispatch: + types: sync-MusicFreeDesktop +jobs: + repo-sync: + env: + PAT: ${{ secrets.PAT }} + runs-on: ubuntu-latest + if: github.event.repository.owner.id == github.event.sender.id + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + with: + persist-credentials: false + + - name: Check if branch exists + id: check_branch + run: | + if git show-ref --verify --quiet refs/heads/MusicFreeDesktop; then + echo "branch_exists=true" >> $GITHUB_ENV + else: + echo "branch_exists=false" >> $GITHUB_ENV + fi + + - name: Delete existing branch + if: ${{ env.branch_exists == 'true' }} + run: | + git push origin --delete MusicFreeDesktop + + - name: Create new branch + if: ${{ env.branch_exists == 'false' }} + run: | + git checkout -b MusicFreeDesktop + git push --set-upstream origin MusicFreeDesktop + + - name: Sync branch + uses: repo-sync/github-sync@v2 + if: env.PAT + with: + source_repo: "https://github.com/maotoumao/MusicFreeDesktop" + source_branch: "master" + destination_branch: "MusicFreeDesktop" + github_token: ${{ secrets.PAT }} diff --git a/.github/workflows/WorkerVless2sub.yml b/.github/workflows/WorkerVless2sub.yml new file mode 100644 index 000000000..8865ab39a --- /dev/null +++ b/.github/workflows/WorkerVless2sub.yml @@ -0,0 +1,47 @@ +name: WorkerVless2sub +on: + schedule: + - cron: '15 2 * * *' + workflow_dispatch: + repository_dispatch: + types: sync-WorkerVless2sub +jobs: + repo-sync: + env: + PAT: ${{ secrets.PAT }} + runs-on: ubuntu-latest + if: github.event.repository.owner.id == github.event.sender.id + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + with: + persist-credentials: false + + - name: Check if branch exists + id: check_branch + run: | + if git show-ref --verify --quiet refs/heads/WorkerVless2sub; then + echo "branch_exists=true" >> $GITHUB_ENV + else: + echo "branch_exists=false" >> $GITHUB_ENV + fi + + - name: Delete existing branch + if: ${{ env.branch_exists == 'true' }} + run: | + git push origin --delete WorkerVless2sub + + - name: Create new branch + if: ${{ env.branch_exists == 'false' }} + run: | + git checkout -b WorkerVless2sub + git push --set-upstream origin WorkerVless2sub + + - name: Sync branch + uses: repo-sync/github-sync@v2 + if: env.PAT + with: + source_repo: "https://github.com/cmliu/WorkerVless2sub" + source_branch: "main" + destination_branch: "WorkerVless2sub" + github_token: ${{ secrets.PAT }} diff --git a/.github/workflows/adblockfilters.yml b/.github/workflows/adblockfilters.yml new file mode 100644 index 000000000..d905e6c78 --- /dev/null +++ b/.github/workflows/adblockfilters.yml @@ -0,0 +1,47 @@ +name: adblockfilters +on: + schedule: + - cron: '24 18 * * *' + workflow_dispatch: + repository_dispatch: + types: sync-adblockfilters +jobs: + repo-sync: + env: + PAT: ${{ secrets.PAT }} + runs-on: ubuntu-latest + if: github.event.repository.owner.id == github.event.sender.id + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + with: + persist-credentials: false + + - name: Check if branch exists + id: check_branch + run: | + if git show-ref --verify --quiet refs/heads/adblockfilters; then + echo "branch_exists=true" >> $GITHUB_ENV + else: + echo "branch_exists=false" >> $GITHUB_ENV + fi + + - name: Delete existing branch + if: ${{ env.branch_exists == 'true' }} + run: | + git push origin --delete adblockfilters + + - name: Create new branch + if: ${{ env.branch_exists == 'false' }} + run: | + git checkout -b adblockfilters + git push --set-upstream origin adblockfilters + + - name: Sync branch + uses: repo-sync/github-sync@v2 + if: env.PAT + with: + source_repo: "https://github.com/217heidai/adblockfilters" + source_branch: "main" + destination_branch: "adblockfilters" + github_token: ${{ secrets.PAT }} diff --git a/.github/workflows/chatbox.yml b/.github/workflows/chatbox.yml new file mode 100644 index 000000000..c8efab551 --- /dev/null +++ b/.github/workflows/chatbox.yml @@ -0,0 +1,47 @@ +name: chatbox +on: + schedule: + - cron: '16 8 * * *' + workflow_dispatch: + repository_dispatch: + types: sync-chatbox +jobs: + repo-sync: + env: + PAT: ${{ secrets.PAT }} + runs-on: ubuntu-latest + if: github.event.repository.owner.id == github.event.sender.id + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + with: + persist-credentials: false + + - name: Check if branch exists + id: check_branch + run: | + if git show-ref --verify --quiet refs/heads/chatbox; then + echo "branch_exists=true" >> $GITHUB_ENV + else: + echo "branch_exists=false" >> $GITHUB_ENV + fi + + - name: Delete existing branch + if: ${{ env.branch_exists == 'true' }} + run: | + git push origin --delete chatbox + + - name: Create new branch + if: ${{ env.branch_exists == 'false' }} + run: | + git checkout -b chatbox + git push --set-upstream origin chatbox + + - name: Sync branch + uses: repo-sync/github-sync@v2 + if: env.PAT + with: + source_repo: "https://github.com/Bin-Huang/chatbox" + source_branch: "main" + destination_branch: "chatbox" + github_token: ${{ secrets.PAT }} diff --git a/.github/workflows/gpt4free.yml b/.github/workflows/gpt4free.yml new file mode 100644 index 000000000..3e7d2202b --- /dev/null +++ b/.github/workflows/gpt4free.yml @@ -0,0 +1,47 @@ +name: gpt4free +on: + schedule: + - cron: '58 3 * * *' + workflow_dispatch: + repository_dispatch: + types: sync-gpt4free +jobs: + repo-sync: + env: + PAT: ${{ secrets.PAT }} + runs-on: ubuntu-latest + if: github.event.repository.owner.id == github.event.sender.id + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + with: + persist-credentials: false + + - name: Check if branch exists + id: check_branch + run: | + if git show-ref --verify --quiet refs/heads/gpt4free; then + echo "branch_exists=true" >> $GITHUB_ENV + else: + echo "branch_exists=false" >> $GITHUB_ENV + fi + + - name: Delete existing branch + if: ${{ env.branch_exists == 'true' }} + run: | + git push origin --delete gpt4free + + - name: Create new branch + if: ${{ env.branch_exists == 'false' }} + run: | + git checkout -b gpt4free + git push --set-upstream origin gpt4free + + - name: Sync branch + uses: repo-sync/github-sync@v2 + if: env.PAT + with: + source_repo: "https://github.com/xtekky/gpt4free" + source_branch: "main" + destination_branch: "gpt4free" + github_token: ${{ secrets.PAT }} diff --git a/.github/workflows/open-all.yml b/.github/workflows/open-all.yml new file mode 100644 index 000000000..3f8ac8ca3 --- /dev/null +++ b/.github/workflows/open-all.yml @@ -0,0 +1,47 @@ +name: open-all +on: + schedule: + - cron: '51 16 * * *' + workflow_dispatch: + repository_dispatch: + types: sync-open-all +jobs: + repo-sync: + env: + PAT: ${{ secrets.PAT }} + runs-on: ubuntu-latest + if: github.event.repository.owner.id == github.event.sender.id + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + with: + persist-credentials: false + + - name: Check if branch exists + id: check_branch + run: | + if git show-ref --verify --quiet refs/heads/open-all; then + echo "branch_exists=true" >> $GITHUB_ENV + else: + echo "branch_exists=false" >> $GITHUB_ENV + fi + + - name: Delete existing branch + if: ${{ env.branch_exists == 'true' }} + run: | + git push origin --delete open-all + + - name: Create new branch + if: ${{ env.branch_exists == 'false' }} + run: | + git checkout -b open-all + git push --set-upstream origin open-all + + - name: Sync branch + uses: repo-sync/github-sync@v2 + if: env.PAT + with: + source_repo: "https://github.com/godgodgame/open-all" + source_branch: "main" + destination_branch: "open-all" + github_token: ${{ secrets.PAT }} diff --git a/.github/workflows/psub.yml b/.github/workflows/psub.yml new file mode 100644 index 000000000..c60b1630c --- /dev/null +++ b/.github/workflows/psub.yml @@ -0,0 +1,47 @@ +name: psub +on: + schedule: + - cron: '22 10 * * *' + workflow_dispatch: + repository_dispatch: + types: sync-psub +jobs: + repo-sync: + env: + PAT: ${{ secrets.PAT }} + runs-on: ubuntu-latest + if: github.event.repository.owner.id == github.event.sender.id + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + with: + persist-credentials: false + + - name: Check if branch exists + id: check_branch + run: | + if git show-ref --verify --quiet refs/heads/psub; then + echo "branch_exists=true" >> $GITHUB_ENV + else: + echo "branch_exists=false" >> $GITHUB_ENV + fi + + - name: Delete existing branch + if: ${{ env.branch_exists == 'true' }} + run: | + git push origin --delete psub + + - name: Create new branch + if: ${{ env.branch_exists == 'false' }} + run: | + git checkout -b psub + git push --set-upstream origin psub + + - name: Sync branch + uses: repo-sync/github-sync@v2 + if: env.PAT + with: + source_repo: "https://github.com/bulianglin/psub" + source_branch: "main" + destination_branch: "psub" + github_token: ${{ secrets.PAT }} diff --git a/.github/workflows/siyuan.yml b/.github/workflows/siyuan.yml new file mode 100644 index 000000000..fba1ee42b --- /dev/null +++ b/.github/workflows/siyuan.yml @@ -0,0 +1,47 @@ +name: siyuan +on: + schedule: + - cron: '3 5 * * *' + workflow_dispatch: + repository_dispatch: + types: sync-siyuan +jobs: + repo-sync: + env: + PAT: ${{ secrets.PAT }} + runs-on: ubuntu-latest + if: github.event.repository.owner.id == github.event.sender.id + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + with: + persist-credentials: false + + - name: Check if branch exists + id: check_branch + run: | + if git show-ref --verify --quiet refs/heads/siyuan; then + echo "branch_exists=true" >> $GITHUB_ENV + else: + echo "branch_exists=false" >> $GITHUB_ENV + fi + + - name: Delete existing branch + if: ${{ env.branch_exists == 'true' }} + run: | + git push origin --delete siyuan + + - name: Create new branch + if: ${{ env.branch_exists == 'false' }} + run: | + git checkout -b siyuan + git push --set-upstream origin siyuan + + - name: Sync branch + uses: repo-sync/github-sync@v2 + if: env.PAT + with: + source_repo: "https://github.com/siyuan-note/siyuan" + source_branch: "master" + destination_branch: "siyuan" + github_token: ${{ secrets.PAT }}