From 8bb7627f2a6ec5ec570334cfb2e3c393e71a347b Mon Sep 17 00:00:00 2001 From: Mike Chang Date: Fri, 26 Jan 2024 09:40:53 -0800 Subject: [PATCH] Remove script path check (#242) Removes the script path check. Some of the build scripts are not located in `/Scripts` folder Tested in my fork: https://github.com/amzn-changml/3p-package-source/actions/runs/7620373614 Signed-off-by: Mike Chang --- .github/workflows/build-package.yaml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/build-package.yaml b/.github/workflows/build-package.yaml index b047f518..9b55026a 100644 --- a/.github/workflows/build-package.yaml +++ b/.github/workflows/build-package.yaml @@ -48,17 +48,9 @@ jobs: esac # Only get the changes that can be built - # Check if the diff contains the word "Scripts" to ensure we only build packages that have changed # Wrap the grep inside an if-statement to avoid exiting script upon non-zero exitcode. DIFF=$(git diff ${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }} --no-ext-diff --unified=0 \ --exit-code -a --no-prefix -- $FILE | egrep "^\+") - - if echo "$DIFF" | grep Scripts; then - DIFF=$(echo "$DIFF" | grep Scripts) - else - echo "Did not find Scripts changes in file: $FILE. Skipping." - continue - fi PACKAGE=$(echo $DIFF | cut -d'"' -f2) PACKPATH=$(echo $DIFF | egrep -o "package-system/[^ ]*")