From db069109ff9d15cba1bf5f070222faea792c9cc9 Mon Sep 17 00:00:00 2001 From: darkclip Date: Sat, 27 Jan 2024 01:25:30 +0800 Subject: [PATCH] update --- ...better-cf-ip.yml => fetch-better-cf-ip.yml} | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) rename .github/workflows/{checkout-better-cf-ip.yml => fetch-better-cf-ip.yml} (69%) diff --git a/.github/workflows/checkout-better-cf-ip.yml b/.github/workflows/fetch-better-cf-ip.yml similarity index 69% rename from .github/workflows/checkout-better-cf-ip.yml rename to .github/workflows/fetch-better-cf-ip.yml index 5316507f..ba385e7c 100644 --- a/.github/workflows/checkout-better-cf-ip.yml +++ b/.github/workflows/fetch-better-cf-ip.yml @@ -1,17 +1,17 @@ -name: checkout-better-cf-ip +name: fetch-better-cf-ip on: push: branches: - 'master' paths: - - '.github/workflows/checkout-better-cf-ip.yml' + - '.github/workflows/fetch-better-cf-ip.yml' workflow_dispatch: schedule: - cron: '0 16 * * *' jobs: - checkout-better-cf-ip: + fetch-better-cf-ip: runs-on: ubuntu-latest permissions: contents: write @@ -29,12 +29,14 @@ jobs: }) console.log(ret.data.tag_name) return ret.data.tag_name - - name: Checkout reference branch 1 - uses: actions/checkout@v4 + - name: Fetch reference branch 1 + uses: dsaltares/fetch-gh-release-asset@master with: - repository: XIU2/CloudflareSpeedTest - ref: ${{steps.latest_tag.outputs.result}} - path: ref1 + repo: XIU2/CloudflareSpeedTest + version: tags/${{steps.latest_tag.outputs.result}} + regex: true + file: "CloudflareST_*" + target: 'ref1/' - name: Checkout target branch uses: actions/checkout@v4 with: