File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 exit 1
3737 fi
3838 if [ ! -f "${CHECKSUM}" ]; then
39- echo "ERROR: expected checksum not found: ${CHECKSUM}" >&2
40- exit 1
39+ ARCHIVE_BASENAME="$(basename "${ARCHIVE}")"
40+ sha256sum "${ARCHIVE}" | awk -v name="${ARCHIVE_BASENAME}" '{print $1 " " name}' > "${CHECKSUM}"
41+ echo "Generated missing checksum: ${CHECKSUM}"
4142 fi
4243 echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
4344 echo "archive=${ARCHIVE}" >> "$GITHUB_OUTPUT"
Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ test('release-on-main workflow auto-publishes validated releases from current pl
139139 assert . match ( releaseOnMainWorkflow , / f o l d e r v i e w \. p l u s \. p l g / ) ;
140140 assert . match ( releaseOnMainWorkflow , / a r c h i v e \/ f o l d e r v i e w \. p l u s - \$ \{ V E R S I O N \} \. t x z / ) ;
141141 assert . match ( releaseOnMainWorkflow , / C H E C K S U M = " \$ \{ A R C H I V E \} \. s h a 2 5 6 " / ) ;
142+ assert . match ( releaseOnMainWorkflow , / s h a 2 5 6 s u m " \$ \{ A R C H I V E \} " / ) ;
143+ assert . match ( releaseOnMainWorkflow , / G e n e r a t e d m i s s i n g c h e c k s u m / ) ;
142144 assert . match ( releaseOnMainWorkflow , / g h r e l e a s e c r e a t e / ) ;
143145 assert . match ( releaseOnMainWorkflow , / g h r e l e a s e e d i t / ) ;
144146 assert . match ( releaseOnMainWorkflow , / g h r e l e a s e u p l o a d " \$ \{ T A G \} " " \$ \{ A R C H I V E \} " " \$ \{ C H E C K S U M \} " - - c l o b b e r / ) ;
You can’t perform that action at this time.
0 commit comments