Skip to content

Commit

Permalink
Add build hash to theme version.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne authored Dec 19, 2023
1 parent 59082d0 commit f2ceac6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ jobs:
run: |
git add * --force
- name: Append build number to version
run: |
current_version=$(grep -oP 'Version: \K[0-9]+\.[0-9]+\.[0-9]+' style.css)
new_version="${current_version}-${GITHUB_SHA::7}"
sed -i "s/Version: $current_version/Version: $new_version/" style.css
- name: Commit and push
uses: actions-js/push@a52398fac807b0c1e5f1492c969b477c8560a0ba # 1.3
with:
Expand Down

0 comments on commit f2ceac6

Please sign in to comment.