summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author世界 <[email protected]>2024-05-15 21:56:09 +0800
committer世界 <[email protected]>2024-05-15 21:56:09 +0800
commit9f67a380fd86ff87b03e62d5bb5106b41e0635db (patch)
treefff2e0ff5c005a4839b9d8fca8953037129344f6
parent153a1dbd04163ce1b9c7dd55c83f54a300a4fbd1 (diff)
-rw-r--r--.github/workflows/build.yaml10
-rw-r--r--.github/workflows/release.yaml10
2 files changed, 6 insertions, 14 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 46a1ef3..98f291a 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -9,17 +9,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
fetch-depth: 0
- - name: Get latest go version
- id: version
- run: |
- echo ::set-output name=go_version::$(curl -s https://raw.githubusercontent.com/actions/go-versions/main/versions-manifest.json | grep -oE '"version": "[0-9]{1}.[0-9]{1,}(.[0-9]{1,})?"' | head -1 | cut -d':' -f2 | sed 's/ //g; s/"//g')
- name: Setup Go
- uses: actions/setup-go@v2
+ uses: actions/setup-go@v5
with:
- go-version: ${{ steps.version.outputs.go_version }}
+ go-version: ^1.22
- name: Build geosite
id: build
env:
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index ec51d81..f5716ba 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -9,17 +9,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
fetch-depth: 0
- - name: Get latest go version
- id: version
- run: |
- echo ::set-output name=go_version::$(curl -s https://raw.githubusercontent.com/actions/go-versions/main/versions-manifest.json | grep -oE '"version": "[0-9]{1}.[0-9]{1,}(.[0-9]{1,})?"' | head -1 | cut -d':' -f2 | sed 's/ //g; s/"//g')
- name: Setup Go
- uses: actions/setup-go@v2
+ uses: actions/setup-go@v5
with:
- go-version: ${{ steps.version.outputs.go_version }}
+ go-version: ^1.22
- name: Build geosite
id: build
run: |