Update 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
|
# 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!"
|
|
||||||
|
المرجع في مشكلة جديدة
حظر مستخدم