updated workflows
هذا الالتزام موجود في:
@@ -1,6 +1,6 @@
|
||||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
name: 04 Conditionals
|
||||
name: 05 Conditionals
|
||||
|
||||
# Controls when the workflow will run
|
||||
on:
|
||||
@@ -20,7 +20,7 @@ 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"
|
||||
build:
|
||||
hello:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ env.Greeting == 'Hello'}}
|
||||
@@ -33,3 +33,17 @@ jobs:
|
||||
# Runs a single command using the runners shell
|
||||
- name: Run a one-line script
|
||||
run: echo "$Greeting, $Name!"
|
||||
|
||||
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!"
|
||||
|
المرجع في مشكلة جديدة
حظر مستخدم