From be82f51073b0b1fb4ffe752bb9bd2010c92e47af Mon Sep 17 00:00:00 2001 From: Chris Ayers Date: Wed, 29 Jun 2022 12:22:46 -0400 Subject: [PATCH] Update 05-conditionals.yml --- .github/workflows/05-conditionals.yml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/.github/workflows/05-conditionals.yml b/.github/workflows/05-conditionals.yml index cad4eec..e3510fa 100644 --- a/.github/workflows/05-conditionals.yml +++ b/.github/workflows/05-conditionals.yml @@ -20,30 +20,19 @@ env: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" - hello: + greeting: # The type of runner that the job will run on runs-on: ubuntu-latest - if: ${{ env.Greeting == 'Hello'}} # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - # Runs a single command using the runners shell - - name: Run a one-line script + - name: Run Hello run: echo "$Greeting, $Name!" + if: ${{ env.Greeting == 'Hello'}} - bye: - # The type of runner that the job will run on - runs-on: ubuntu-latest - if: ${{ env.Greeting == 'Goodbye'}} - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo "$Greeting, $Name!" + - name: Run Goodbye + run: echo "$Greeting $Name" + if: ${{ env.Greeting == 'Goodbye'}}