File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 3232 - name : " Checkout"
3333 uses : actions/checkout@v4
3434 with :
35- fetch-depth : 2
35+ fetch-depth : 3
3636
3737 - name : " Check for changes in src folder"
3838 id : checkChanges
@@ -47,28 +47,28 @@ jobs:
4747 echo "${yellow}${bold}------------------------------------------------------------------------------------------${reset}"
4848 echo "${yellow}${bold}Check for changes in source code${reset}"
4949 echo "${yellow}${bold}------------------------------------------------------------------------------------------${reset}"
50-
50+ echo "${newLine}"
5151 echo "${yellow}Checking if there has been changes to source code by running git diff on the src folder excluding markdown files${reset}"
5252
5353 changes=$(git diff HEAD^ HEAD --ignore-all-space --name-only -- src/)
5454 nonMarkdownChanges=""
5555 continueWorkflow=true
5656
57+ echo "${yellow}${bold}Changes:${reset}"
58+ echo "$changes"
59+ echo "${newLine}"
60+
5761 if [ -n "$changes" ]; then
58- echo "${yellow}${bold}Changes:${reset}"
59- echo "$changes"
6062 nonMarkdownChanges=$(echo $changes | grep -v '\.md$')
6163
6264 if [ -n "$nonMarkdownChanges" ]; then
63- echo "${newLine}"
6465 echo "${green}${bold}There have been changes to non-Markdown files! Start building 🏗️${reset}"
6566 else
66- echo "${newLine}"
6767 echo "${yellow}No changes to non-Markdown files detected. Cancelling the workflow${reset}"
6868 continueWorkflow=false
6969 fi
70+
7071 else
71- echo "${newLine}"
7272 echo "${yellow}No changes to files in src folder. Cancelling the workflow${reset}"
7373 continueWorkflow=false
7474 fi
You can’t perform that action at this time.
0 commit comments