diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d411ece..6260425 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,6 @@ name: "Genshin Impact Helper" on: schedule: - cron: "0 22 * * *" # scheduled at 06:00 (UTC+8) everyday - workflow_dispatch: jobs: build: @@ -14,7 +13,8 @@ jobs: - name: Checkout master uses: actions/checkout@v2 with: - ref: master + repository: y1ndan/genshin-impact-helper + ref: master - name: Set up python uses: actions/setup-python@v2 diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml deleted file mode 100644 index 5d7a114..0000000 --- a/.github/workflows/sync.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: "Auto Sync Fork" - -on: - schedule: - - cron: "0 16 * * *" # scheduled at 00:00 (UTC+8) everyday - workflow_dispatch: - -jobs: - sync: - runs-on: ubuntu-latest - if: github.ref == 'refs/heads/master' - - steps: - - name: Fork sync - uses: tgymnich/fork-sync@v1.2 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - owner: y1ndan - base: master - head: master diff --git a/README.md b/README.md index 6c5e88b..df9e30c 100644 --- a/README.md +++ b/README.md @@ -138,17 +138,6 @@ Error: Process completed with exit code 255. -## 🔄更新 - -因为接口请求上可能发生一些变化,所以上游源代码需要作出更改来适配这些变化,如果你没有及时更新项目源代码,可能会导致签到失败。 - -为解决此问题,项目开启了自动同步上游源代码的工作流程。该功能生效于 2020 年 12 月 04 日之后复刻的项目。 - -若在此时间之前复刻,可按照以下步骤更新: - -- 下载[sync.yml](https://raw.githubusercontent.com/y1ndan/genshin-impact-helper/master/.github/workflows/sync.yml)文件 -- 自行上传`sync.yml`文件至**你的 Fork 仓库**的`.github/workflows`目录下 -- 到`Actions`页面手动触发一次名为`Auto Sync Fork`的工作流程 ## ❗️协议