File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7171 if : ${{ steps.ghcr.outputs.has-packages == 'true' }}
7272 run : echo "Packages found!"
7373
74+ - name : No packages found, fail the job
75+ if : ${{ steps.ghcr.outputs.has-packages != 'true' }}
76+ run : |
77+ echo "No packages found in GHCR for this repository."
78+ exit 1
79+
80+
7481 security-scan-matrix :
7582 needs : debug-packages
7683 if : ${{ inputs.image == '' || inputs.image == null }}
Original file line number Diff line number Diff line change 7171 if : ${{ steps.ghcr.outputs.has-packages == 'true' }}
7272 run : echo "Packages found!"
7373
74+ - name : No packages found, fail the job
75+ if : ${{ steps.ghcr.outputs.has-packages != 'true' }}
76+ run : |
77+ echo "No packages found in GHCR for this repository."
78+ exit 1
79+
7480 security-scan-matrix :
7581 needs : debug-packages
7682 if : ${{ inputs.image == '' || inputs.image == null }}
You can’t perform that action at this time.
0 commit comments