From 29572bcd38167c68783a8b46ef2cecf44c39b719 Mon Sep 17 00:00:00 2001 From: Alexander Lerach Date: Fri, 6 Dec 2024 14:04:17 +0100 Subject: [PATCH] try array access --- .github/workflows/dynrunner.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dynrunner.yml b/.github/workflows/dynrunner.yml index 15123a9..6994299 100644 --- a/.github/workflows/dynrunner.yml +++ b/.github/workflows/dynrunner.yml @@ -6,9 +6,11 @@ on: - '*' jobs: - overwrite: - name: Dynrunner + select: + name: Select dynamic runner runs-on: ubuntu-latest + env: + LABELS: ${{ toJson(github.event.pull_request.labels.*.name) }} steps: - name: Output - run: echo ${{ toJson(github.event.pull_request.labels.*.name) }} + run: echo ${{ fromJSON(env.LABELS)[0] }}