mirror of
https://github.com/Ryubing/Website.git
synced 2025-05-13 03:00:37 +01:00
30 lines
No EOL
554 B
YAML
30 lines
No EOL
554 B
YAML
name: fetch releases
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
fetch-release:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '16'
|
|
|
|
- name: install dependencies
|
|
run: |
|
|
npm install
|
|
npm install -g tsx
|
|
|
|
- name: run fetchreleases
|
|
run: |
|
|
npx tsx $GITHUB_WORKSPACE/src/lib/fetchreleases.ts |