From 31874cfc6396e8e9cbbfbf974818c7cc3b4541a6 Mon Sep 17 00:00:00 2001 From: Crown0815 Date: Sat, 24 May 2025 16:52:52 +0200 Subject: [PATCH] ci: Fix incorrect environment variable setup --- .github/workflows/windows-tests.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/windows-tests.yml b/.github/workflows/windows-tests.yml index c69a6294..a3e3a679 100644 --- a/.github/workflows/windows-tests.yml +++ b/.github/workflows/windows-tests.yml @@ -105,9 +105,6 @@ jobs: run: go mod download - name: Windows - Setup Forgejo connection - env: - FORGEJO_URL: ${{ env.FORGEJO_ROOT_URL }} - FORGEJO_RUNNER_SECRET: ${{ env.FORGEJO_RUNNER_SECRET }} run: | # Create a temporary config file $configContent = @" @@ -121,7 +118,7 @@ jobs: Set-Content -Path config.yml -Value $configContent # Register the runner - go run main.go create-runner-file --config config.yml --instance $env:FORGEJO_URL --secret $env:FORGEJO_RUNNER_SECRET --name "windows-test-runner" + go run main.go create-runner-file --config config.yml --instance ${{ env.FORGEJO_ROOT_URL }} --secret ${{ env.FORGEJO_RUNNER_SECRET }} --name "windows-test-runner" - name: Windows - Run tests run: go test -v ./...