mirror of
https://github.com/darkclip/netlist.git
synced 2026-11-11 09:54:07 +08:00
Update fetch-better-cf-ip.yml
This commit is contained in:
parent
19a2a99be7
commit
efebaccb4d
27
.github/workflows/fetch-better-cf-ip.yml
vendored
27
.github/workflows/fetch-better-cf-ip.yml
vendored
@ -16,27 +16,14 @@ jobs:
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Check latest release tag
|
||||
uses: actions/github-script@v7
|
||||
id: latest_tag
|
||||
- name: Check latest release
|
||||
uses: robinraju/release-downloader@v1
|
||||
with:
|
||||
result-encoding: string
|
||||
retries: 3
|
||||
script: |
|
||||
const ret = await github.rest.repos.getLatestRelease({
|
||||
owner: "XIU2",
|
||||
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/'
|
||||
repository: 'XIU2/CloudflareSpeedTest'
|
||||
latest: true
|
||||
tarBall: true
|
||||
zipBall: true
|
||||
out-file-path: 'ref1'
|
||||
- name: Checkout target branch
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user