We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 226ef2e commit 85d9b4dCopy full SHA for 85d9b4d
1 file changed
.github/workflows/ci.yml
@@ -14,9 +14,22 @@ concurrency:
14
cancel-in-progress: true
15
16
jobs:
17
+ label-detector:
18
+ name: Runner Label
19
+ runs-on: label-detector
20
+ outputs:
21
+ runs-on: ${{ steps.detector.outputs.label }}
22
+ steps:
23
+ - name: Detect Label
24
+ id: detector
25
+ run: |
26
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idoutputs
27
+ echo "label=$(curl -fsSL https://this-is-nats.appscode.ninja/runs-on/${{ github.repository_owner }}?visibility=${{ github.repository_visibility }})" >> $GITHUB_OUTPUT
28
+
29
build:
30
name: Build
- runs-on: ubuntu-24.04
31
+ needs: label-detector
32
+ runs-on: "${{ needs.label-detector.outputs.runs-on }}"
33
steps:
34
- name: Set up Go 1.25
35
uses: actions/setup-go@v5
0 commit comments