From 4f41692660964d8626202ff210d468930d5f6a56 Mon Sep 17 00:00:00 2001 From: lvangtao Date: Wed, 20 Nov 2024 10:57:05 +0800 Subject: [PATCH 1/5] Create main.yml --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000000..a69b49abb20 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +name: Upstream Sync + +permissions: + contents: write + +on: + schedule: + - cron: "0 0 * * *" + workflow_dispatch: + +jobs: + sync_with_upstream: + name: Sync with Upstream + runs-on: ubuntu-latest + if: ${{ github.event.repository.fork }} + + steps: + - name: Checkout target repo + uses: actions/checkout@v3 + + - name: Sync Upstream + uses: aormsby/Fork-Sync-With-Upstream-action@v3.4 + with: + target_repo_token: ${{ secrets.GITHUB_TOKEN }} + upstream_sync_repo: ngosang/trackerslist + upstream_sync_branch: main + target_sync_branch: main + test_mode: false + + - name: Check for Failure + if: failure() + run: | + echo "[Error] Due to a change in the workflow file of the upstream repository, GitHub has automatically suspended the scheduled automatic update. You need to manually sync your fork." + exit 1 From 035401036e3662be685605ca3a95f8ca9ee4bb93 Mon Sep 17 00:00:00 2001 From: lvangtao Date: Wed, 20 Nov 2024 11:02:49 +0800 Subject: [PATCH 2/5] Delete .github/workflows directory --- .github/workflows/main.yml | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index a69b49abb20..00000000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Upstream Sync - -permissions: - contents: write - -on: - schedule: - - cron: "0 0 * * *" - workflow_dispatch: - -jobs: - sync_with_upstream: - name: Sync with Upstream - runs-on: ubuntu-latest - if: ${{ github.event.repository.fork }} - - steps: - - name: Checkout target repo - uses: actions/checkout@v3 - - - name: Sync Upstream - uses: aormsby/Fork-Sync-With-Upstream-action@v3.4 - with: - target_repo_token: ${{ secrets.GITHUB_TOKEN }} - upstream_sync_repo: ngosang/trackerslist - upstream_sync_branch: main - target_sync_branch: main - test_mode: false - - - name: Check for Failure - if: failure() - run: | - echo "[Error] Due to a change in the workflow file of the upstream repository, GitHub has automatically suspended the scheduled automatic update. You need to manually sync your fork." - exit 1 From e9966599114089b52a048fe3059fa4bd2e0ce79c Mon Sep 17 00:00:00 2001 From: lvangtao Date: Wed, 20 Nov 2024 11:09:19 +0800 Subject: [PATCH 3/5] Create test --- .github/test | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/test diff --git a/.github/test b/.github/test new file mode 100644 index 00000000000..9daeafb9864 --- /dev/null +++ b/.github/test @@ -0,0 +1 @@ +test From ee2c265648b03f9a7675abc438f63148208f2610 Mon Sep 17 00:00:00 2001 From: lvangtao Date: Wed, 20 Nov 2024 11:10:47 +0800 Subject: [PATCH 4/5] Delete .github/test --- .github/test | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .github/test diff --git a/.github/test b/.github/test deleted file mode 100644 index 9daeafb9864..00000000000 --- a/.github/test +++ /dev/null @@ -1 +0,0 @@ -test From 481cc45b18498d387a7bf3c7c865a3709ace786f Mon Sep 17 00:00:00 2001 From: lvangtao Date: Wed, 20 Nov 2024 11:11:09 +0800 Subject: [PATCH 5/5] Update trackers_all.txt --- trackers_all.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trackers_all.txt b/trackers_all.txt index 5d14255bd01..5201c8ee6d5 100644 --- a/trackers_all.txt +++ b/trackers_all.txt @@ -1,4 +1,4 @@ -udp://tracker.opentrackr.org:1337/announce + http://tracker.opentrackr.org:1337/announce