Skip to content

Commit

Permalink
Merge pull request #2069 from lf-lang/snapshot-show-commit-as-well
Browse files Browse the repository at this point in the history
CI updated to include commit SHA in version number when creating nightly build
  • Loading branch information
lhstrh authored Oct 23, 2023
2 parents 1bbc46b + e4fbb08 commit 3072892
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ jobs:
fetch-depth: 0
- name: Prepare build environment
uses: ./.github/actions/prepare-build-env
- name: Modify property file to contain the commit SHA
shell: bash
run: |
TIMESTAMP="$(date +'%Y-%m-%d')"
SHA="$(git rev-parse --short HEAD)"
sed --regexp-extended --in-place "s/^(VERSION = .*)$/\1 ${SHA} ${TIMESTAMP}/" core/src/main/resources/org/lflang/StringsBundle.properties
- name: Build and package lf cli tools (nightly build)
shell: bash
run: |
Expand Down

0 comments on commit 3072892

Please sign in to comment.