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