From 7fc3e9357ec02a94763fb034f3eeaa129d5d474b Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Thu, 16 May 2024 14:00:20 -0500 Subject: [PATCH] Updated validate release check for version checks on Validate Release (dispatch) step Signed-off-by: Roger Barker --- .github/workflows/release-artifacts.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-artifacts.yml b/.github/workflows/release-artifacts.yml index ba1063ba6..c4cc05ef2 100644 --- a/.github/workflows/release-artifacts.yml +++ b/.github/workflows/release-artifacts.yml @@ -73,8 +73,8 @@ jobs: - name: Validate Release (dispatch) if: ${{ github.event_name == 'workflow_dispatch' }} run: | - if [[ "${{ steps.workflow_tag.outputs.version }}" != "${{ steps.project.outputs.version }}" ]]; then - echo "::error file=version.gradle,line=5,title=Version Mismatch::Tag version '${{ steps.workflow_tag.outputs.version }}' does not match the Gradle project version '${{ steps.project.outputs.version }}'. Please update the 'version.gradle' file before tagging." + if [[ "${{ steps.workflow_tag.outputs.version }}" != "${{github.event.inputs.version}}" ]]; then + echo "::error file=version.gradle,line=5,title=Version Mismatch::Tag version '${{ steps.workflow_tag.outputs.version }}' does not match the Gradle project version '${{github.event.inputs.version}}'. Please update the 'version.gradle' file before tagging." exit 1 fi