From 60dc8455be728a243c942191fbc753f640d83f1d Mon Sep 17 00:00:00 2001 From: Berry de Vos Date: Fri, 26 Jan 2024 06:29:12 +0100 Subject: [PATCH] Replace file exists action with simple bash check for the file --- .github/workflows/send-email.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/send-email.yaml b/.github/workflows/send-email.yaml index 1791073..20c9fba 100644 --- a/.github/workflows/send-email.yaml +++ b/.github/workflows/send-email.yaml @@ -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'