diff --git a/.github/workflows/buildReporting.yml b/.github/workflows/buildReporting.yml index 64704c1c..49651c46 100644 --- a/.github/workflows/buildReporting.yml +++ b/.github/workflows/buildReporting.yml @@ -16,6 +16,19 @@ jobs: maven-build-reporting: runs-on: ubuntu-latest steps: + - name: Get short SHA + uses: benjlevesque/short-sha@v2.1 + id: short-sha + - name: Store short SHA as environment variable + run: echo $SHA + env: + SHA: ${{ steps.short-sha.outputs.sha }} + - name: Set env + run: echo "TAG_NAME=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + - name: Test tag name + run: | + echo $TAG_NAME + echo ${{ env.TAG_NAME }} - name: Checkout repository uses: actions/checkout@v4