Skip to content

Commit

Permalink
Echo labels using json conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-vakil committed Jul 24, 2024
1 parent 2953836 commit c77cb89
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/workflow_build_and_release_containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c77cb89

Please sign in to comment.