Skip to content

Commit c42bee6

Browse files
committed
cicd: improve nightly script output
Signed-off-by: Hank Donnay <[email protected]>
1 parent 08581d8 commit c42bee6

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/script/nightly-module.sh

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
#!/bin/sh
22
set -e
33
: "${CLAIRCORE_BRANCH:=main}"
4-
5-
echo "::group::go version"
64
cd "$(git rev-parse --show-toplevel)"
7-
go version
8-
echo "::endgroup::"
9-
105
test -d vendor && rm -rf vendor
116

12-
echo "::group::Changes"
7+
echo "::group::Edits"
138
go mod edit \
149
"-replace=github.com/quay/claircore=github.com/quay/claircore@${CLAIRCORE_BRANCH}"
1510
go mod tidy
1611
go mod download # Shouldn't be needed, but just to be safe...
17-
git diff
1812
echo "::endgroup::"
1913

2014
clair_version="$(git describe --tags --always --dirty --match 'v4.*')"
21-
echo "::notice::Clair version: ${clair_version}"
2215
echo "clair_version=${clair_version}" >> "$GITHUB_OUTPUT"
16+
17+
cat <<. >>"$GITHUB_STEP_SUMMARY"
18+
### Changes
19+
20+
- **Go version:** $(go version)
21+
- **Clair version:** ${clair_version}
22+
.
23+
{
24+
echo '```patch'
25+
git diff
26+
echo '```'
27+
} >>"$GITHUB_STEP_SUMMARY"

0 commit comments

Comments
 (0)