Skip to content

Commit

Permalink
Add Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MrWillCom committed Aug 12, 2024
1 parent 2cde647 commit 25071cc
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/fetch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Fetch and Save Trending

on:
schedule:
- cron: 0 12 * * *
workflow_dispatch:

permissions:
contents: write

jobs:
build:
name: Fetech and Save Trending
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install pnpm
run: npm i pnpm -g
- name: Install Dependencies
run: pnpm install
- name: Run Scripts
run: pnpm start
- name: Publish
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add data
git commit -m "Fetch latest trending"
git push

0 comments on commit 25071cc

Please sign in to comment.