Use runner's actual label ubuntu-latest in runs-on
CI/CD (dev on branch, prod on tag) / setup (push) Successful in 4m3s
CI/CD (dev on branch, prod on tag) / build-and-deploy (push) Failing after 1m24s

The act_runner registered with default labels (name gitea-runner is not a
label), so jobs with runs-on: gitea-runner never matched an online runner.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Tom Chien (IQ-AS)
2026-11-17 14:40:48 +08:00
co-authored by Claude Opus 4.6
parent 36025062db
commit 64275f8544
+2 -2
View File
@@ -10,7 +10,7 @@ on:
jobs:
setup:
# Gitea Actions: runners are selected by label only (no runner groups).
runs-on: gitea-runner
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.pick.outputs.matrix }}
steps:
@@ -26,7 +26,7 @@ jobs:
build-and-deploy:
needs: setup
runs-on: gitea-runner
runs-on: ubuntu-latest
strategy:
matrix: ${{ fromJSON(needs.setup.outputs.matrix) }}