Skip to content

Commit e637506

Browse files
Skip version check if version found is "Behind feature flag"
1 parent 88b6ed5 commit e637506

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/version-check.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ jobs:
6969
7070
- The work package version OR your pull request target branch is correct
7171
- name: Version check passed
72-
if: steps.version-check.outputs.version_mismatch != 'true' && steps.version-check.outputs.no_ticket != 'true'
72+
if: |
73+
steps.version-check.outputs.behind_feature_flag == 'true' ||
74+
(steps.version-check.outputs.version_mismatch != 'true' && steps.version-check.outputs.no_ticket != 'true')
7375
uses: marocchino/sticky-pull-request-comment@d4d6b0936434b21bc8345ad45a440c5f7d2c40ff # v3
7476
with:
7577
header: version-mismatch-comment

script/ci/version_check.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ fi
7777

7878
echo "Version from API: $VERSION_FROM_API"
7979

80+
if [[ "$VERSION_FROM_API" == "Behind feature flag" ]]; then
81+
echo "Work package ${WORK_PACKAGE_ID} is assigned to \"Behind feature flag\". Skipping version check."
82+
echo "behind_feature_flag=true" >> "$GITHUB_OUTPUT"
83+
exit 0
84+
fi
85+
8086
# Extract version from the Ruby file using 'rake version'
8187
VERSION_FROM_FILE=$(ruby -e 'require_relative "./lib/open_project/version"; puts OpenProject::VERSION.to_s')
8288

0 commit comments

Comments
 (0)