find version by go.mod (#52)

* use go-version-file instead go-version

* fix a problem

* fix a problem
This commit is contained in:
Omid The Great authored and GitHub committed 2024-05-20 20:58:07 +08:00
1 parent d8aeb7850d
commit cdcd6e1d56
1 file changed
+6 -4
+6 -4
View File
@@ -10,13 +10,15 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Golang - name: Setup Golang
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: '1.22.2' go-version-file: 'go.mod'
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup JDK - name: Setup JDK
uses: actions/setup-java@v4 uses: actions/setup-java@v4