From cdcd6e1d56b76b0750bb8f7bf7e5336abf078f83 Mon Sep 17 00:00:00 2001 From: Omid The Great <143901555+omid-the-great@users.noreply.github.com> Date: Mon, 20 May 2024 16:28:07 +0330 Subject: [PATCH] find version by go.mod (#52) * use go-version-file instead go-version * fix a problem * fix a problem --- .github/workflows/main.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 76be8ea..a52682f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,13 +10,15 @@ jobs: build: runs-on: ubuntu-latest steps: + + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Golang uses: actions/setup-go@v4 with: - go-version: '1.22.2' - - - name: Checkout repository - uses: actions/checkout@v4 + go-version-file: 'go.mod' - name: Setup JDK uses: actions/setup-java@v4