Skip to content

Commit

Permalink
[semver:patch] Check the file exists and print debug information if i…
Browse files Browse the repository at this point in the history
…t fails (#2)
  • Loading branch information
zigarn authored Mar 30, 2022
2 parents e16005d + ff897e0 commit 68bfb44
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/jobs/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ steps:
name: Compress resource
command: |
SRC="<< parameters.source >>"
if [ ! -e "$SRC" ]; then
echo "Source file '$SRC' does not exist" >&2
echo "Here is the content of the workspace"
find .
exit 1
fi
case << parameters.compression-mode >> in
none)
if [ -d "${SRC}" ]; then
Expand Down

0 comments on commit 68bfb44

Please sign in to comment.