From c77cb899c9a59e23039a4b9715e5ff812ad9bf7e Mon Sep 17 00:00:00 2001 From: Stephen Vakil Date: Wed, 24 Jul 2024 10:05:13 -0500 Subject: [PATCH] Echo labels using json conversion --- .github/workflows/workflow_build_and_release_containers.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/workflow_build_and_release_containers.yaml b/.github/workflows/workflow_build_and_release_containers.yaml index 99b0f75e..714a79f0 100644 --- a/.github/workflows/workflow_build_and_release_containers.yaml +++ b/.github/workflows/workflow_build_and_release_containers.yaml @@ -55,9 +55,7 @@ jobs: - name: determine if we should create release and deploy id: should-create-release run: | - for label in "${{github.pull_request.labels.*.name}}"; do - echo "label: $label" - done + echo "labels: ${{ toJSON(github.event.pull_request.labels.*.name) }}" if [[ ${{ github.ref_name == 'main' || github.pull_request.labels.*.name == 'deploy-to-sandbox' }} ]]; then echo "SHOULD_CREATE_RELEASE=true" >> $GITHUB_ENV else