From 202aa22bbbfe992dd0ff0595de47d63ed44a1d3d Mon Sep 17 00:00:00 2001 From: Dominik Date: Fri, 5 Jun 2026 17:53:08 +0200 Subject: [PATCH] fix(languages): gitea runner input bug fix --- .github/workflows/languages-go-fmt.yml | 8 ++++++-- .github/workflows/languages-go-goreleaser-check.yml | 8 ++++++-- .github/workflows/languages-go-goreleaser.yml | 4 +++- .github/workflows/languages-go-security.yml | 4 +++- .github/workflows/languages-go-test.yml | 8 ++++++-- 5 files changed, 24 insertions(+), 8 deletions(-) diff --git a/.github/workflows/languages-go-fmt.yml b/.github/workflows/languages-go-fmt.yml index 6b0915a..b5a547d 100644 --- a/.github/workflows/languages-go-fmt.yml +++ b/.github/workflows/languages-go-fmt.yml @@ -16,12 +16,14 @@ jobs: fmt: name: gofmt runs-on: ubuntu-latest + env: + GO_VERSION_FILE: ${{ inputs.go-version-file }} steps: - uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: ${{ inputs.go-version-file }} + go-version-file: ${{ env.GO_VERSION_FILE }} cache: true - name: Check formatting @@ -40,12 +42,14 @@ jobs: runs-on: ubuntu-latest needs: fmt if: ${{ inputs.run-vet }} + env: + GO_VERSION_FILE: ${{ inputs.go-version-file }} steps: - uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: ${{ inputs.go-version-file }} + go-version-file: ${{ env.GO_VERSION_FILE }} cache: true - name: go vet diff --git a/.github/workflows/languages-go-goreleaser-check.yml b/.github/workflows/languages-go-goreleaser-check.yml index 8d48707..172377c 100644 --- a/.github/workflows/languages-go-goreleaser-check.yml +++ b/.github/workflows/languages-go-goreleaser-check.yml @@ -16,13 +16,15 @@ jobs: check: name: goreleaser check runs-on: ubuntu-latest + env: + GO_VERSION_FILE: ${{ inputs.go-version-file }} steps: - uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: ${{ inputs.go-version-file }} + go-version-file: ${{ env.GO_VERSION_FILE }} cache: true - name: Validate .goreleaser.yaml @@ -35,6 +37,8 @@ jobs: name: goreleaser build (snapshot) runs-on: ubuntu-latest needs: check + env: + GO_VERSION_FILE: ${{ inputs.go-version-file }} steps: - uses: actions/checkout@v4 with: @@ -43,7 +47,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: ${{ inputs.go-version-file }} + go-version-file: ${{ env.GO_VERSION_FILE }} cache: true - name: Build snapshot diff --git a/.github/workflows/languages-go-goreleaser.yml b/.github/workflows/languages-go-goreleaser.yml index 0dc11e7..de0c7ef 100644 --- a/.github/workflows/languages-go-goreleaser.yml +++ b/.github/workflows/languages-go-goreleaser.yml @@ -15,6 +15,8 @@ jobs: release: name: goreleaser release runs-on: ubuntu-latest + env: + GO_VERSION_FILE: ${{ inputs.go-version-file }} steps: - uses: actions/checkout@v4 with: @@ -23,7 +25,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: ${{ inputs.go-version-file }} + go-version-file: ${{ env.GO_VERSION_FILE }} cache: true - name: Run GoReleaser diff --git a/.github/workflows/languages-go-security.yml b/.github/workflows/languages-go-security.yml index 67487b3..92243e6 100644 --- a/.github/workflows/languages-go-security.yml +++ b/.github/workflows/languages-go-security.yml @@ -63,13 +63,15 @@ jobs: vuln: name: vulnerability check (govulncheck) runs-on: ubuntu-latest + env: + GO_VERSION_FILE: ${{ inputs.go-version-file }} steps: - uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: ${{ inputs.go-version-file }} + go-version-file: ${{ env.GO_VERSION_FILE }} cache: true - name: Install govulncheck diff --git a/.github/workflows/languages-go-test.yml b/.github/workflows/languages-go-test.yml index 7de1ed5..8fc1f00 100644 --- a/.github/workflows/languages-go-test.yml +++ b/.github/workflows/languages-go-test.yml @@ -24,17 +24,21 @@ jobs: test: name: go test runs-on: ubuntu-latest + env: + GO_VERSION_FILE: ${{ inputs.go-version-file }} steps: - uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: ${{ inputs.go-version-file }} + go-version-file: ${{ env.GO_VERSION_FILE }} cache: true - name: Run tests + env: + TIMEOUT: ${{ inputs.timeout }} run: | - ARGS="-timeout ${{ inputs.timeout }}" + ARGS="-timeout $TIMEOUT" if [ "${{ inputs.run-race }}" = "true" ]; then ARGS="$ARGS -race" fi