1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-06-27 16:35:58 +00:00

ci: Fix incorrect environment variable setup

This commit is contained in:
Crown0815 2025-05-24 16:52:52 +02:00 committed by Crown0815
parent 04740a3828
commit 31874cfc63

View file

@ -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 ./...