Skip to content

Commit

Permalink
Add additional check for core package
Browse files Browse the repository at this point in the history
  • Loading branch information
valicm committed Nov 1, 2023
1 parent 5c4d49e commit b7cfadb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inputs:
required: false
default: 'semver-safe-update'
update_core:
description: 'Skip checking for Drupal core updates. Default false'
description: 'Skip checking for Drupal core updates. Default true'
required: false
default: 'true'
update_exclude:
Expand Down
7 changes: 6 additions & 1 deletion drupal-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,12 @@ done
# It should be passable between same major versions of D10.
if [ "$UPDATE_CORE" == true ]; then
CORE_PACKAGE=$(echo "${UPDATES}" | jq -c '.locked[] | select(.name == "drupal/core")')
update_project "$CORE_PACKAGE" SUMMARY_OUTPUT_TABLE SUMMARY_INSTRUCTIONS
if [ -z "$CORE_PACKAGE" ] || [ "$CORE_PACKAGE" == null ]; then
CORE_PACKAGE=$(echo "${UPDATES}" | jq -c '.locked[] | select(.name == "drupal/core-recommended")')
fi
if [ "$CORE_PACKAGE" ]; then
update_project "$CORE_PACKAGE" SUMMARY_OUTPUT_TABLE SUMMARY_INSTRUCTIONS
fi
fi

SUMMARY_INSTRUCTIONS+="\n$SUMMARY_OUTPUT_TABLE"
Expand Down

0 comments on commit b7cfadb

Please sign in to comment.