File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 runs-on : ubuntu-latest
88 steps :
99 - name : Literals
10+ run : |
11+ echo $myNull
12+ echo $myBoolean
13+ echo $myIntegerNumber
14+ echo $myFloatNumber
15+ echo $myHexNumber
16+ echo $myExponentialNumber
17+ echo $myString
18+ echo $myStringInBraces
1019 env :
1120 myNull : ${{ null }}
1221 myBoolean : ${{ false }}
@@ -18,11 +27,22 @@ jobs:
1827 myStringInBraces : ${{ 'It''s open source!' }}
1928
2029 - name : Operators
30+ run : echo $MY_ENV_VAR
2131 env :
2232 MY_ENV_VAR : ${{ github.ref == 'refs/heads/master' && 'value_for_main_branch' || 'value_for_other_branches' }}
2333
2434 - name : Functions
2535 if : contains(fromJSON('["push", "pull_request"]'), github.event_name) # true
36+ run : |
37+ echo $contains
38+ echo $startsWith
39+ echo $endsWith
40+ echo $format
41+ echo $formatEscapingBraces
42+ echo $join
43+ echo $toJSON
44+ echo $fromJSON
45+ echo $hashFiles
2646 env :
2747 contains : contains('Hello world', 'llo') # true
2848 startsWith : startsWith('Hello world', 'He') # true
@@ -35,13 +55,13 @@ jobs:
3555 hashFiles : hashFiles('**/package-lock.json')
3656
3757 - name : sucess
38- if : ${{ success() }}
58+ run : echo ${{ success() }}
3959
4060 - name : always
41- if : ${{ always() }}
61+ run : echo ${{ always() }}
4262
4363 - name : cancelled
44- if : ${{ cancelled() }}
64+ run : echo ${{ cancelled() }}
4565
4666 - name : failure
47- if : ${{ failure() }}
67+ run : echo ${{ failure() }}
You can’t perform that action at this time.
0 commit comments