Skip to content

Commit

Permalink
should fix project_ver
Browse files Browse the repository at this point in the history
  • Loading branch information
shufps committed Nov 11, 2024
1 parent d585606 commit b7f3737
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,14 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Ensure full history and tags are fetched

- name: Get Version Tag
id: version_tag
run: |
git fetch --tags # Ensure all tags are fetched
version=$(git describe --tags --abbrev=0 2>/dev/null || echo "untagged")
version=$(git describe --tags --abbrev=0 2>/dev/null || git rev-parse --short HEAD)
echo "VERSION_TAG=${version}" >> $GITHUB_ENV
echo "${version}" > version.txt
echo "VERSION_TAG=${version}"
- name: Set Target
Expand Down

0 comments on commit b7f3737

Please sign in to comment.