Skip to content

Commit

Permalink
Add tag and get latest tag step
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksKnezevic committed Sep 20, 2024
1 parent e8f7dfa commit 7814970
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,18 @@ jobs:
name: install-artifacts
path: ${{ steps.strings.outputs.build-output-dir }}/artifact.tar

- name: Get the latest tag
shell: bash
run: |
latest_tag=$(git describe --tags --abbrev=0)
latest_tag=${latest_tag#v}
echo "latest_tag=$latest_tag" >> $GITHUB_ENV
commit_count=$(git rev-list ${{ env.latest_tag }}..HEAD --count)
echo "commit_count=$commit_count" >> $GITHUB_ENV
version="${{ env.latest_tag }}.${{ env.commit_count }}"
echo "version=$version" >> $GITHUB_ENV
echo $version
# Run tests on TT hardware

Expand Down

0 comments on commit 7814970

Please sign in to comment.