Skip to content

Commit

Permalink
md5
Browse files Browse the repository at this point in the history
  • Loading branch information
spuder committed Nov 4, 2024
1 parent b951976 commit 3f3362d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ jobs:
- name: Copy manifest to firmware folder
run: |
for file in openspool-esp32s2/*.bin; do
md5sum -q "$file" > "${file}.md5"
cp openspool-esp32s2/manifest.json firmware/manifest.json
cp openspool-esp32s2/*.bin firmware/
for file in firmware/*.bin; do
md5sum "$file" | awk '{print $1}' > "firmware/${file}.md5"
filelength=$(wc -c <"$file")
if [ "$filelength" -ne 33 ]; then
echo "md5 failed for $file"
Expand All @@ -55,7 +57,7 @@ jobs:
committer_name: GitHub Actions
committer_email: [email protected]
message: Update manifest.json
add: "openspool-esp32s2/*"
add: "firmware/manifest.json firmware/*.bin firmware/*.md5"
push: true

- name: Upload Artifacts
Expand Down

0 comments on commit 3f3362d

Please sign in to comment.