π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
Change version retrieval to short commit SHA
Enno Gelhaus39c6cba6ff6e
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yamlindex cb442d6a6..d40e7f140 100644--- a/.github/workflows/build.yaml+++ b/.github/workflows/build.yaml@@ -51,13 +51,12 @@ jobs:- name: Buildrun: pnpm run build- - name: Get Project Version from Git Tag+ - name: Get Commit SHA (short)id: get_versionrun: |- # Use 'git describe' to find the closest tag, falling back to the commit SHA if no tag is found.- # --tags includes all tags, --always ensures it always outputs something.- VERSION=$(git describe --tags --always)- echo "Project version is $VERSION"+ # Get the short 8-character commit SHA+ VERSION=$(git rev-parse --short=8 HEAD)+ echo "Commit SHA is $VERSION"echo "tag=$VERSION" >> $GITHUB_OUTPUT- name: SonarQube Analysis (Branch)