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 3939 with :
4040 destination : ${{ env.TARGET }}
4141 gfm : ' true'
42+ # fatal: 'errors' (default)
4243 env :
4344 UNIT_TEST_A : This is UNIT_TEST_A
4445 - name : Check ${{ env.TARGET }} was created
6465 with :
6566 destination : ${{ env.TARGET }}
6667 gfm : ' true'
68+ fatal : ' warnings'
6769 env : # This is a different value
6870 UNIT_TEST_A : This is UNIT_TEST_A updated
6971 - name : Check ${{ env.TARGET }} is present and has been updated
8688 with :
8789 destination : ${{ env.TARGET }}
8890 gfm : ' true'
91+ fatal : ' ' # should ignore it
8992 env : # This is the same value
9093 UNIT_TEST_A : This is UNIT_TEST_A updated
9194 - 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:
2525 description : " Pelican Version (default 4.5.4)"
2626 required : false
2727 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'
2832runs :
2933 using : " composite"
3034 steps :
7478 else
7579 OPTS=''
7680 fi
81+ if [ -n "${{ inputs.fatal }}" ]
82+ then
83+ OPTS="$OPTS --fatal ${{ inputs.fatal }}"
84+ fi
7785 echo "Getting plugins from action location: ${{ github.action_path }}"
7886 PP=$(python3 ${{ github.action_path }}/plugin_paths.py '${{ github.action_path }}/plugins')
87+ set -x # Show the expanded variables
7988 python3 -B -m pelican content -e "$PP" -o ${{ inputs.tempdir }} $OPTS
8089
8190 - name : Check out previous branch
You can’t perform that action at this time.
0 commit comments