Skip to content

Commit

Permalink
Add checksum to file
Browse files Browse the repository at this point in the history
  • Loading branch information
spuder committed Nov 4, 2024
1 parent 6b0a659 commit 62b88c0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,23 @@ jobs:
run: |
cp openspool-esp32s2/manifest.json firmware/manifest.json
cp openspool-esp32s2/*.bin firmware/
for file in openspool-esp32s2/*.bin; do
md5 -q "$file" > "${file}.md5"
filelength=$(wc -c <"$file")
if [ "$filelength" -ne 3 ]; then
echo "md5 failed for $file"
exit 1
fi
done
- name: Commit manifest file
uses: EndBug/add-and-commit@v9
with:
committer_name: GitHub Actions
committer_email: [email protected]
message: Update manifest.json
add: "firmware/manifest.json firmware/*.bin"
add: "firmware/manifest.json firmware/*.bin firmware/*.md5"
push: true

- name: Upload Artifacts
Expand Down

0 comments on commit 62b88c0

Please sign in to comment.