File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 39
39
with :
40
40
destination : ${{ env.TARGET }}
41
41
gfm : ' true'
42
+ # fatal: 'errors' (default)
42
43
env :
43
44
UNIT_TEST_A : This is UNIT_TEST_A
44
45
- name : Check ${{ env.TARGET }} was created
64
65
with :
65
66
destination : ${{ env.TARGET }}
66
67
gfm : ' true'
68
+ fatal : ' warnings'
67
69
env : # This is a different value
68
70
UNIT_TEST_A : This is UNIT_TEST_A updated
69
71
- name : Check ${{ env.TARGET }} is present and has been updated
86
88
with :
87
89
destination : ${{ env.TARGET }}
88
90
gfm : ' true'
91
+ fatal : ' ' # should ignore it
89
92
env : # This is the same value
90
93
UNIT_TEST_A : This is UNIT_TEST_A updated
91
94
- name : Check ${{ env.TARGET }} is present and has not been updated
Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ inputs:
25
25
description : " Pelican Version (default 4.5.4)"
26
26
required : false
27
27
default : ' 4.5.4'
28
+ fatal :
29
+ description : " Value for --fatal option [errors|warnings] - sets exit code to error (default: errors)"
30
+ required : false
31
+ default : ' errors'
28
32
runs :
29
33
using : " composite"
30
34
steps :
74
78
else
75
79
OPTS=''
76
80
fi
81
+ if [ -n "${{ inputs.fatal }}" ]
82
+ then
83
+ OPTS="$OPTS --fatal ${{ inputs.fatal }}"
84
+ fi
77
85
echo "Getting plugins from action location: ${{ github.action_path }}"
78
86
PP=$(python3 ${{ github.action_path }}/plugin_paths.py '${{ github.action_path }}/plugins')
87
+ set -x # Show the expanded variables
79
88
python3 -B -m pelican content -e "$PP" -o ${{ inputs.tempdir }} $OPTS
80
89
81
90
- name : Check out previous branch
You can’t perform that action at this time.
0 commit comments