mirror of
https://github.com/darkclip/netlist.git
synced 2026-12-02 00:48:43 +08:00
Update fetch-better-cf-ip.yml
This commit is contained in:
1 file changed
+7
-20
@@ -16,27 +16,14 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Check latest release tag
|
- name: Check latest release
|
||||||
uses: actions/github-script@v7
|
uses: robinraju/release-downloader@v1
|
||||||
id: latest_tag
|
|
||||||
with:
|
with:
|
||||||
result-encoding: string
|
repository: 'XIU2/CloudflareSpeedTest'
|
||||||
retries: 3
|
latest: true
|
||||||
script: |
|
tarBall: true
|
||||||
const ret = await github.rest.repos.getLatestRelease({
|
zipBall: true
|
||||||
owner: "XIU2",
|
out-file-path: 'ref1'
|
||||||
repo: "CloudflareSpeedTest"
|
|
||||||
})
|
|
||||||
console.log(ret.data.tag_name)
|
|
||||||
return ret.data.tag_name
|
|
||||||
- name: Fetch reference branch 1
|
|
||||||
uses: dsaltares/fetch-gh-release-asset@master
|
|
||||||
with:
|
|
||||||
repo: XIU2/CloudflareSpeedTest
|
|
||||||
version: tags/${{steps.latest_tag.outputs.result}}
|
|
||||||
regex: true
|
|
||||||
file: "CloudflareST_*"
|
|
||||||
target: 'ref1/'
|
|
||||||
- name: Checkout target branch
|
- name: Checkout target branch
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in new issue
Block a user