mirror of
https://github.com/deskflow/deskflow.git
synced 2026-06-13 21:02:14 +08:00
ci: check for summaries dir before building message
This commit is contained in:
parent
c362e5d8fb
commit
1bfdb8f707
14
.github/workflows/ci-comment.yml
vendored
14
.github/workflows/ci-comment.yml
vendored
@ -41,16 +41,22 @@ jobs:
|
||||
- name: Merge summaries
|
||||
id: summary
|
||||
run: |
|
||||
files=$(ls summaries)
|
||||
if [ -z "$files" ]; then
|
||||
echo "No summaries found"
|
||||
dir="summaries"
|
||||
if [ ! -d "$dir" ]; then
|
||||
echo "Skipping, no summaries, no such dir: $dir"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
files=$(ls $dir)
|
||||
if [ -z "$files" ]; then
|
||||
echo "Error: No summaries found in dir: $dir"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "message<<EOF" >> $GITHUB_OUTPUT
|
||||
echo "## CI Summary" >> $GITHUB_OUTPUT
|
||||
|
||||
for file in summaries/*; do
|
||||
for file in $dir/*; do
|
||||
echo $(cat $file) >> $GITHUB_OUTPUT
|
||||
done
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user