From c01ac2dcdc1fb468993609f6ac248fb7be4fecc6 Mon Sep 17 00:00:00 2001 From: Jadyn Date: Sun, 27 Jun 2021 15:41:14 +0800 Subject: [PATCH] Change Test branch to repository --- .github/workflows/sync_qqwry.yml | 53 -------------------------------- QQWryTest/QQWryIpSearchTest.cs | 7 ++--- README.md | 1 - 3 files changed, 3 insertions(+), 58 deletions(-) delete mode 100644 .github/workflows/sync_qqwry.yml diff --git a/.github/workflows/sync_qqwry.yml b/.github/workflows/sync_qqwry.yml deleted file mode 100644 index 8c23008..0000000 --- a/.github/workflows/sync_qqwry.yml +++ /dev/null @@ -1,53 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: sync_qqwry - -# Controls when the action will run. -on: - # Triggers the workflow on push or pull request events but only for the master branch - schedule: - - cron: 15 23 * * * - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: windows-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - with: - ## The branch, tag or SHA to checkout. - ref: 'test' - - # Runs a single command using the runners shell - - name: Run download script - shell: powershell - run: ./download.ps1 - - - name: Config Git - run: | - git config user.name github-actions - git config user.email github-actions@github.com - - # - name: Import GPG key - # id: import_gpg - # uses: crazy-max/ghaction-import-gpg@v3 - # with: - # gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - # passphrase: ${{ secrets.GPG_PASSPHRASE }} - # git-user-signingkey: true - # git-commit-gpgsign: true - - # Runs a set of commands using the runners shell - - name: Git push - run: | - git add . - git commit -m 'sync qqwry' - git push diff --git a/QQWryTest/QQWryIpSearchTest.cs b/QQWryTest/QQWryIpSearchTest.cs index d7caec9..f7e6d0c 100644 --- a/QQWryTest/QQWryIpSearchTest.cs +++ b/QQWryTest/QQWryIpSearchTest.cs @@ -19,11 +19,10 @@ protected QQWryIpSearch GetInstance() var option = new QQWryOptions(dbPath) { - QQWryUrl = "https://github.com/JadynWong/IP_qqwry/raw/test/qqwry.rar", - CopyWriteUrl = "https://github.com/JadynWong/IP_qqwry/raw/test/copywrite.rar" + QQWryUrl = "https://github.com/JadynWong/QQWrySync/raw/main/qqwry.rar", + CopyWriteUrl = "https://github.com/JadynWong/QQWrySync/raw/main/copywrite.rar" }; - QQWryIpSearch ipSearch = new QQWryIpSearch(option); - return ipSearch; + return new QQWryIpSearch(option); } protected string GetRandomIp(IIpSearch ipSearch) diff --git a/README.md b/README.md index 6e05c5e..99a2ea9 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ [![.NET Core](https://github.com/JadynWong/IP_qqwry/actions/workflows/dotnetcore.yml/badge.svg)](https://github.com/JadynWong/IP_qqwry/actions/workflows/dotnetcore.yml) [![release](https://github.com/JadynWong/IP_qqwry/actions/workflows/release.yml/badge.svg)](https://github.com/JadynWong/IP_qqwry/actions/workflows/release.yml) -[![sync_qqwry](https://github.com/JadynWong/IP_qqwry/actions/workflows/sync_qqwry.yml/badge.svg)](https://github.com/JadynWong/IP_qqwry/actions/workflows/sync_qqwry.yml) | Packages | Version | | ---- | ---- |