File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 8383 if : ${{ github.repository == env.UPSTREAM_REPO && github.ref == env.UPSTREAM_BRANCH }}
8484 run : docker logout
8585
86+ - name : Check for the attachment availability
87+ if : always()
88+ run : |
89+ if [ -f "./installed_packages_detailed_report.txt" ]; then
90+ echo "ATTACHMENT=installed_packages_detailed_report.txt" >> $GITHUB_ENV
91+ else
92+ echo "ATTACHMENT=" >> $GITHUB_ENV
93+ fi
94+
8695 - name : Send the email notification
87- if : failure ()
96+ if : always ()
8897 uses : dawidd6/action-send-mail@v2
8998 with :
9099 # mail server settings
@@ -101,4 +110,4 @@ jobs:
101110 to : ${{ vars.EMAIL_RECIPIENTS }}
102111 # from email name
103112 from : DockHRM Automator
104- attachments : installed_packages_detailed_report.txt
113+ attachments : ${{ env.ATTACHMENT }}
You can’t perform that action at this time.
0 commit comments