fix: add Node.js setup for script execution
- Add actions/setup-node@v4 with Node 20 - Required to run .github/scripts/parse-metrics.mjs - Following pattern from other workflows that use .mjs scripts
This commit is contained in:
8
.github/workflows/weekly-metrics-discord.yml
vendored
8
.github/workflows/weekly-metrics-discord.yml
vendored
@@ -17,6 +17,14 @@ jobs:
|
||||
env:
|
||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_METRICS_WEBHOOK }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Get dates for last week
|
||||
run: |
|
||||
# Last 7 days
|
||||
|
||||
Reference in New Issue
Block a user