diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8ebfe243..97ffd6706 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,9 +15,21 @@ 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: | + 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 uses: actions/setup-go@v5