From b8a42836611df047797093e44d1f1c9af72730c0 Mon Sep 17 00:00:00 2001 From: Amit Ben Ami Date: Wed, 21 Dec 2022 12:04:13 +0200 Subject: [PATCH] feat(prefix): adding prefix to the CI --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f67f16b..535a2eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,19 @@ jobs: echo "Timestamp: ${{ steps.previoustag.outputs.timestamp }}" test -n "${{ steps.previoustag.outputs.tag }}" test -n "${{ steps.previoustag.outputs.timestamp }}" + - name: Add tag with prefix + run: | + git tag tag-with-prefix-v1.0.0 + - name: 'Get Previous tag with prefix' + id: previoustagwithprefix + uses: ./ + with: + prefix: tag-with-prefix-v + - run: | + echo "Tag: ${{ steps.previoustagwithprefix.outputs.tag }}" + echo "Timestamp: ${{ steps.previoustagwithprefix.outputs.timestamp }}" + test -n "${{ steps.previoustagwithprefix.outputs.tag }}" + test -n "${{ steps.previoustagwithprefix.outputs.timestamp }}" - name: Remove tags uses: JesseTG/rm@v1.0.2 with: