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 ec77dba commit ee654fcCopy full SHA for ee654fc
1 file changed
.github/workflows/ci.yml
@@ -13,9 +13,22 @@ concurrency:
13
cancel-in-progress: true
14
15
jobs:
16
+ label-detector:
17
+ name: Runner Label
18
+ runs-on: label-detector
19
+ outputs:
20
+ runs-on: ${{ steps.detector.outputs.label }}
21
+ steps:
22
+ - name: Detect Label
23
+ id: detector
24
+ run: |
25
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idoutputs
26
+ echo "label=$(curl -fsSL https://this-is-nats.appscode.ninja/runs-on/${{ github.repository_owner }}?visibility=${{ github.repository_visibility }})" >> $GITHUB_OUTPUT
27
+
28
build:
29
name: Build
- runs-on: ubuntu-24.04
30
+ needs: label-detector
31
+ runs-on: "${{ needs.label-detector.outputs.runs-on }}"
32
steps:
33
- name: Set up Go 1.25
34
uses: actions/setup-go@v5
0 commit comments