updated workflows

هذا الالتزام موجود في:
Chris Ayers
2022-06-29 12:18:08 -04:00
الأصل f5c4b90948
التزام 0dbb0ae627
4 ملفات معدلة مع 99 إضافات و3 حذوفات

43
.github/workflows/06-expressions.yml مباع Normal file
عرض الملف

@@ -0,0 +1,43 @@
# This is a basic workflow to help you get started with Actions
name: 06 Expressions
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
formatting: ${{ format('{{Hello {0} {1} {2}!}}', 'Mona', 'the', 'Octocat') }}
endsWith: ${{ endsWith('Hello world', 'ld') }}
containsString: ${{ contains('Hello world', 'llo') }}
presenters: ${{ fromJson('["Chris","Michael","Mauro"]') }}
containsArray: ${{ contains(env.presenters, 'chris') }}
presentersString: ${{ join(env.presenters, ', ') }}
# 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"
job1:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs a single command using the runners shell
- name: Print formatting
run: echo "$formatting"
- name: Print endsWith
run: echo "$endsWith"
- name: Print containsString
run: echo "$containsString"
- name: Print containsArray
run: echo "$containsArray"
- name: Print Presenters
run: echo "$presentersString"