From 537953e15ae5c42f93913e4285205b347bcc3e6b Mon Sep 17 00:00:00 2001 From: Chris Ayers Date: Wed, 29 Jun 2022 12:24:32 -0400 Subject: [PATCH] correct syntax --- .github/workflows/06-expressions.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/06-expressions.yml b/.github/workflows/06-expressions.yml index 374d211..37e7fa1 100644 --- a/.github/workflows/06-expressions.yml +++ b/.github/workflows/06-expressions.yml @@ -17,9 +17,8 @@ env: formatting: ${{ format('{{Hello {0} {1} {2}!}}', 'Mona', 'the', 'Octocat') }} endsWith: ${{ endsWith('Hello world', 'ld') }} containsString: ${{ contains('Hello world', 'llo') }} - presenters: ${{ fromJson('["Chris","Michael","Mauro"]') }} - containsArray: ${{ contains(env.presenters, 'chris') }} - presentersString: ${{ join(env.presenters, ', ') }} + containsArray: ${{ contains(fromJson('["Chris","Michael","Mauro"]'), 'chris') }} + presentersString: ${{ join(fromJson('["Chris","Michael","Mauro"]'), ', ') }} # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: