Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
longwangjiang authored Jun 29, 2024
1 parent 49e28ba commit 778b2e5
Show file tree
Hide file tree
Showing 13 changed files with 611 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/CF-Workers-docker.io.yml
Original file line number Diff line number Diff line change
@@ -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 }}
47 changes: 47 additions & 0 deletions .github/workflows/CasaOS.yml
Original file line number Diff line number Diff line change
@@ -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 }}
47 changes: 47 additions & 0 deletions .github/workflows/Custom_OpenClash_Rules.yml
Original file line number Diff line number Diff line change
@@ -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 }}
47 changes: 47 additions & 0 deletions .github/workflows/Docker-Proxy.yml
Original file line number Diff line number Diff line change
@@ -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 }}
47 changes: 47 additions & 0 deletions .github/workflows/GitHub-Chinese-Top-Charts.yml
Original file line number Diff line number Diff line change
@@ -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 }}
47 changes: 47 additions & 0 deletions .github/workflows/MusicFreeDesktop.yml
Original file line number Diff line number Diff line change
@@ -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 }}
47 changes: 47 additions & 0 deletions .github/workflows/WorkerVless2sub.yml
Original file line number Diff line number Diff line change
@@ -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 }}
47 changes: 47 additions & 0 deletions .github/workflows/adblockfilters.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Loading

0 comments on commit 778b2e5

Please sign in to comment.