Skip to content

Commit

Permalink
fix: return instead of exit when condition is met
Browse files Browse the repository at this point in the history
  • Loading branch information
dg1223 committed Jul 26, 2023
1 parent 4498de6 commit 84f339a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 84f339a

Please sign in to comment.