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 # A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs:
# This workflow contains a single job called "build" # This workflow contains a single job called "build"
hello: greeting:
# The type of runner that the job will run on # The type of runner that the job will run on
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ env.Greeting == 'Hello'}}
# Steps represent a sequence of tasks that will be executed as part of the job # Steps represent a sequence of tasks that will be executed as part of the job
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2 - uses: actions/checkout@v2
# Runs a single command using the runners shell - name: Run Hello
- name: Run a one-line script
run: echo "$Greeting, $Name!" run: echo "$Greeting, $Name!"
if: ${{ env.Greeting == 'Hello'}}
bye: - name: Run Goodbye
# The type of runner that the job will run on run: echo "$Greeting $Name"
runs-on: ubuntu-latest if: ${{ env.Greeting == 'Goodbye'}}
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!"