From 84f339a53c34f7b92dbb29b53f4f5bc5d3ab3719 Mon Sep 17 00:00:00 2001 From: dg1223 Date: Wed, 26 Jul 2023 14:04:59 +0600 Subject: [PATCH] fix: return instead of exit when condition is met --- .github/workflows/ci-cd-develop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd-develop.yml b/.github/workflows/ci-cd-develop.yml index e68c3e0..75aca91 100644 --- a/.github/workflows/ci-cd-develop.yml +++ b/.github/workflows/ci-cd-develop.yml @@ -26,7 +26,7 @@ jobs: # Check if 'README.md' or '.yml' files are the only files changed if [[ ${CHANGED_FILES} =~ ^(README\.md|.*\.yml)$ && ! ${CHANGED_FILES} =~ ^(?!.*(README\.md|.*\.yml)).*$ ]]; then echo "Only README.md or .yml files have been updated. Skipping the CI/CD workflow." - exit 0 + return 0 fi echo "Changes to files other than README.md or *.yml detected. Proceeding with the CI/CD workflow." continue-on-error: true