From a1958a4ca4791702f37427bc5d31aa755415c41d Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Sat, 9 May 2026 17:00:24 +0600 Subject: [PATCH] ci: use dynamic runner Signed-off-by: Tamal Saha --- .github/workflows/ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ec3787..f59736e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,10 +14,22 @@ concurrency: cancel-in-progress: true jobs: + label-detector: + name: Runner Label + runs-on: label-detector + outputs: + runs-on: ${{ steps.detector.outputs.label }} + steps: + - name: Detect Label + id: detector + run: | + # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idoutputs + echo "label=$(curl -fsSL https://this-is-nats.appscode.ninja/runs-on/${{ github.repository_owner }}?visibility=${{ github.repository_visibility }})" >> $GITHUB_OUTPUT build: name: Build - runs-on: ubuntu-24.04 + needs: label-detector + runs-on: "${{ needs.label-detector.outputs.runs-on }}" steps: - name: Set up Go 1.25