mirror of
https://github.com/thelittlerocket/rss-to-email.git
synced 2025-02-28 19:03:26 +08:00
Replace file exists action with simple bash check for the file
This commit is contained in:
parent
9903f75bbf
commit
60dc8455be
1 changed files with 5 additions and 4 deletions
9
.github/workflows/send-email.yaml
vendored
9
.github/workflows/send-email.yaml
vendored
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue