Update workflow file

This commit is contained in:
David Boreham 2023-04-10 06:42:26 -06:00
parent b09cabce6d
commit 4fba034582

View File

@ -13,15 +13,11 @@ jobs:
steps: steps:
- name: "Clone project repository" - name: "Clone project repository"
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: "Get build info" # TODO: put this in a library - name: "Get build info"
id: build-info id: build-info
run: | run: |
build_time=$(date +'%Y%m%d%H%M') ./scripts/create_build_tag_file.sh
product_version=$( cat app/data/version.txt ) build_tag=$(cat ./app/data/build_tag.txt)
short_sha=$(git rev-parse --short HEAD)
build_tag=$(echo "v${product_version}-${short_sha}-${build_time}")
echo "build-time=${build_time}" >> $GITHUB_OUTPUT
echo "short-sha=${short_sha}" >> $GITHUB_OUTPUT
echo "build-tag=${build_tag}" >> $GITHUB_OUTPUT echo "build-tag=${build_tag}" >> $GITHUB_OUTPUT
- name: "Install Python" - name: "Install Python"
uses: cerc-io/setup-python@v4 uses: cerc-io/setup-python@v4