diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 714764a..416c4b5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: distribution: 'zulu' java-version: '11' - name: Extract tag version - run: echo "tag=$(echo '${{ github.ref_name }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')" >> $GITHUB_OUTPUT + run: echo "tag=$(echo '${{ github.ref_name }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}(-p[0-9]+)?')" >> $GITHUB_OUTPUT id: extract_tag_version - name: Build project run: ./gradlew clean build diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index a3e41d1..8195bca 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -19,7 +19,7 @@ jobs: with: token: ${{ secrets.RELEASE_ACTIONS_TOKEN }} - name: Extract version - run: echo "version=$(echo '${{ github.event.pull_request.title }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')" >> $GITHUB_OUTPUT + run: echo "version=$(echo '${{ github.event.pull_request.title }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}(-p[0-9]+)?')" >> $GITHUB_OUTPUT id: extract_version - name: Set git config run: |