Skip to content

Commit

Permalink
Append github hash to block.json version field.
Browse files Browse the repository at this point in the history
  • Loading branch information
dd32 authored Jul 4, 2024
1 parent c272f12 commit 98d4765
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ jobs:
rm -rf settings/node_modules
rm -rf vendor
- name: Append build number to version
run: |
VER=$( jq -r .version ./settings/build/block.json )
VER="${VER%%-*}"
new_file="$(jq --arg ver "$VER-${GITHUB_SHA::7}" '.version = $ver' ./settings/build/block.json)"
echo -E "$new_file" > ./settings/build/block.json
- name: Add all the plugin files
run: |
git add * --force
Expand Down

0 comments on commit 98d4765

Please sign in to comment.