diff --git a/.github/workflows/version-check.yml b/.github/workflows/version-check.yml index 0405fd47f940..a29d660332e0 100644 --- a/.github/workflows/version-check.yml +++ b/.github/workflows/version-check.yml @@ -9,7 +9,7 @@ permissions: pull-requests: write # to comment on the PR jobs: - check-pr: + version-check: if: contains(github.event.pull_request.labels.*.name, 'needs review') runs-on: ubuntu-latest @@ -22,7 +22,9 @@ jobs: - name: Verify linked version matches core version id: version-check - run: ./script/ci/version_check.sh "${{ github.event.pull_request.body }}" + env: + PR_BODY: ${{ github.event.pull_request.body }} + run: ./script/ci/version_check.sh "$PR_BODY" - name: Add comment if versions differ if: steps.version-check.outputs.version_mismatch == 'true' @@ -30,14 +32,17 @@ jobs: with: header: version-mismatch-comment message: | - The provided work package version does not match the core version: - + > [!CAUTION] + > The provided work package version does not match the core version + + Details: + - Work package URL: ${{ steps.version-check.outputs.wp_url }} - Work package version: ${{steps.version-check.outputs.wp_version}} - Core version: ${{steps.version-check.outputs.core_version}} - + Please make sure that: - + - The work package version OR your pull request target branch is correct - name: Version check passed if: steps.version-check.outputs.version_mismatch != 'true'