Update send-email.yaml

This commit is contained in:
thelittlerocket 2024-11-05 13:05:39 +08:00 committed by GitHub
parent 27fd44f8b5
commit 189f010de1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,11 +25,11 @@ jobs:
run: echo "LAST_SUCCESS=$(gh api -XGET repos/${{ github.repository_owner }}/${{ github.event.repository.name }}/actions/workflows/send-email.yaml/runs --jq '.workflow_runs[0].run_started_at' -F status=success -F per_page=1)" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm ci
- name: Install dependencies
run: npm install dayjs rss-parser
- run: npm ci
- name: Create email
run: npm run email actionUrl=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} lastSuccess=${{ steps.last_success.outputs.LAST_SUCCESS }}