Skip to content

Commit

Permalink
CI: fix warning of missing Go module cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Loyalsoldier committed Mar 17, 2023
1 parent 8226b78 commit 50abf21
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Go 1.x.y
uses: actions/setup-go@v4
with:
go-version: ^1.18

- name: Compare latest tags and set variables
run: |
upstreamLatestTag=$(curl -sSL --connect-timeout 5 --retry 5 -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/v2fly/domain-list-community/releases/latest | grep "tag_name" | cut -d\" -f4)
Expand All @@ -32,6 +27,12 @@ jobs:
uses: actions/checkout@v3
if: ${{ env.NeedToSync }}

- name: Setup Go
uses: actions/setup-go@v4
if: ${{ env.NeedToSync }}
with:
go-version-file: ./go.mod

- name: Checkout v2fly/domain-list-community
if: ${{ env.NeedToSync }}
uses: actions/checkout@v3
Expand Down

0 comments on commit 50abf21

Please sign in to comment.