Update 05-conditionals.yml

هذا الالتزام موجود في:
Chris Ayers
2022-06-29 12:22:46 -04:00
ملتزم من قبل GitHub
الأصل 0dbb0ae627
التزام be82f51073

عرض الملف

@@ -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'}}