Procházet zdrojové kódy

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 <[email protected]>
Mike Chang před 1 rokem
rodič
revize
8bb7627f2a
1 změnil soubory, kde provedl 0 přidání a 8 odebrání
  1. 0 8
      .github/workflows/build-package.yaml

+ 0 - 8
.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/[^ ]*")