Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Use intermediate environment variable to pass PR body to version_check.sh

Christophe Bliard4e781f57474f
diff --git a/.github/workflows/version-check.yml b/.github/workflows/version-check.yml
index 0405fd47f94..2e4aac5683a 100644
--- a/.github/workflows/version-check.yml
+++ b/.github/workflows/version-check.yml
@@ -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'
@@ -31,13 +33,13 @@ jobs:
header: version-mismatch-comment
message: |
The provided work package version does not match the core version:
-
+
- 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'