Skip to content

Commit 9bbee7b

Browse files
authored
chore: update GitHub Actions workflow to skip builds for changes in specific folders (#2200)
* Update GitHub Actions workflow to skip builds for changes in specific folders - Enhanced the workflow to skip the build process if changes are detected only within the `e2e-tests/` or `.ibm/` folders. - Improved the regex logic in the "Determine Changed Files" step to streamline conditional build execution. Signed-off-by: Gustavo Lira <[email protected]> * Update GitHub Actions workflow to skip builds for changes in specific folders - Enhanced the workflow to skip the build process if changes are detected only within the `e2e-tests/` or `.ibm/` folders. - Improved the regex logic in the "Determine Changed Files" step to streamline conditional build execution. Signed-off-by: Gustavo Lira <[email protected]> --------- Signed-off-by: Gustavo Lira <[email protected]>
1 parent 350a58b commit 9bbee7b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/pr-build-image.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ jobs:
6363
echo "Changed files:"
6464
echo "$CHANGED_FILES"
6565
66-
if echo "$CHANGED_FILES" | grep -qv '^e2e-tests/'; then
67-
echo "Changes detected outside the e2e-tests folder. Proceeding with the build."
66+
if echo "$CHANGED_FILES" | grep -qvE '^(e2e-tests/|\.ibm/)'; then
67+
echo "Changes detected outside the e2e-tests or .ibm folders. Proceeding with the build."
6868
echo "proceed_with_build=true" >> $GITHUB_ENV
6969
else
70-
echo "No changes outside the e2e-tests folder. Skipping the build."
70+
echo "No changes outside the e2e-tests or .ibm folders. Skipping the build."
7171
echo "proceed_with_build=false" >> $GITHUB_ENV
7272
fi
7373

0 commit comments

Comments
 (0)