Replace file exists action with simple bash check for the file

This commit is contained in:
Berry de Vos 2024-01-26 06:29:12 +01:00 committed by Berry de Vos
parent 9903f75bbf
commit 60dc8455be

View file

@ -17,7 +17,7 @@ jobs:
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 18 node-version: 20
cache: 'npm' cache: 'npm'
- name: Last successful run - name: Last successful run
@ -33,9 +33,10 @@ jobs:
- name: Check email exists - name: Check email exists
id: check_email id: check_email
uses: andstor/file-existence-action@v2.0.0 run: |
with: if [ -f dist/email.html ]; then
files: 'dist/email.html' echo "files_exists=true" >> $GITHUB_OUTPUT
fi
- name: Send email - name: Send email
if: steps.check_email.outputs.files_exists == 'true' if: steps.check_email.outputs.files_exists == 'true'