diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c0a9b8..7d193e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,11 +20,11 @@ jobs: - name: Get version from commit message id: version - run: echo "::set-output name=version::$(git log -1 --pretty=%B | grep -oP '\[v([0-9]+\.[0-9]+\.[0-9]+)\]')" + run: echo "::set-output name=version::$(git log -1 --pretty=%B | grep -oP 'v([0-9]+\.[0-9]+\.[0-9]+)')" - name: Validate version format run: | - if [[ ! "${{ steps.version.outputs.version }}" =~ ^\[v([0-9]+\.[0-9]+\.[0-9]+)\]$ ]]; then + if [[ ! "${{ steps.version.outputs.version }}" =~ ^v([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then echo "Invalid version format. Aborting the workflow." exit 1 fi