Skip to content

Commit

Permalink
Use env.version _not_ every time
Browse files Browse the repository at this point in the history
  • Loading branch information
bandogora committed Feb 8, 2024
1 parent aaa1c6a commit ebfd199
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ jobs:
run: |
echo "version=v$(awk 'NR<4{printf "%s%s", sep, $3; sep="."} END{print ""}' app/VERSION)" >> "$GITHUB_ENV"
cd build/zephyr/
tar cfJ merged-${{ env.version }}.hex.tar.xz merged.hex
tar cfJ app_update-${{ env.version }}.bin.tar.xz app_update.bin
tar cfJ -v "merged-$version.hex.tar.xz" merged.hex
tar cfJ -v "app_update-$version.bin.tar.xz" app_update.bin
ls
- name: Delete old build cache if present
env:
Expand All @@ -103,7 +104,7 @@ jobs:
REPO: ${{ github.event.repository.name }}
BRANCH: ${{ github.ref_name }}
run: |
curl -Lv \
curl -L \
-X DELETE \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GH_TOKEN" \
Expand All @@ -117,3 +118,4 @@ jobs:
build/zephyr/merged-${{ env.version }}.hex.tar.xz
build/zephyr/app_update-${{ env.version }}.bin.tar.xz
key: build-${{ env.version }}
run: ls build/zephyr

0 comments on commit ebfd199

Please sign in to comment.