Skip to content

Commit

Permalink
Updated PHP from 7.4 to 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Sekiphp committed Oct 17, 2022
1 parent 83577dd commit 7accf10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.4-cli
FROM php:8.1-cli


LABEL version="1.0"
Expand Down
8 changes: 5 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ AUTH_HEADER="Authorization: token ${GITHUB_TOKEN}"
number=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")



IS_CORE_FILE=$(echo $PATHS | grep -P "^app/code/core/.+$" | wc -l)

is_holycode_label_eligible () {
IS_CORE_FILE=$(echo $PATHS | grep -P "^app/code/core/.+$" | wc -l)

for MODIFIED_FILE in $PATHS
do
IS_MODIFIED_FILE_EXISTS_IN_OPENMAGE=$(cat /openmage_files_v1.6.txt | grep -P "^.*${MODIFIED_FILE}" | wc -l)

if [[ $IS_MODIFIED_FILE_EXISTS_IN_OPENMAGE == 1 || $IS_CORE_FILE == 1 ]]
then
return 1
Expand All @@ -28,7 +28,9 @@ is_holycode_label_eligible () {

return 0
}

is_holycode_label_eligible

if [[ $? == 1 ]]
then
echo "The holycode label is eligible"
Expand Down

0 comments on commit 7accf10

Please sign in to comment.