mirror of
https://github.com/thelittlerocket/rss-to-email.git
synced 2025-03-01 03:12:56 +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
|
- 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'
|
||||||
|
|
Loading…
Reference in a new issue