From 902776567cc1e9a5e1c3c4b5f1233d9e39a6b6da Mon Sep 17 00:00:00 2001 From: Christian Hoffmeister Date: Sat, 9 Dec 2023 10:53:44 +0100 Subject: [PATCH] Update action tests --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 708e699..47affcd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -61,3 +61,26 @@ jobs: echo Output version is empty! exit 1 fi + test-action-0-4-0: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - id: git-describe-semver + uses: choffmeister/git-describe-semver@main + with: + version: 0.4.0 + dir: . + fallback: v0.0.0-init + drop-prefix: true + prerelease-prefix: prefix + prerelease-suffix: suffix + prerelease-timestamped: true + next-release: major + - name: Verify output + run: | + if [[ -z "${{ steps.git-describe-semver.outputs.version }}" ]]; then + echo Output version is empty! + exit 1 + fi