Skip to content

Commit

Permalink
Remove script path check (#242)
Browse files Browse the repository at this point in the history
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 <changml@amazon.com>
  • Loading branch information
amzn-changml authored Jan 26, 2024
1 parent 2af5c1d commit 8bb7627
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/build-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[^ ]*")
Expand Down

0 comments on commit 8bb7627

Please sign in to comment.