File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 7777
7878echo " 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'
8187VERSION_FROM_FILE=$( ruby -e ' require_relative "./lib/open_project/version"; puts OpenProject::VERSION.to_s' )
8288
You can’t perform that action at this time.
0 commit comments