Skip to content

Commit

Permalink
feat: ✨ addded sponsor sheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
miggi92 committed Aug 22, 2024
1 parent e3be981 commit 8a1f181
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/sponsorSheduler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Scheduler

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
push:
branches: [ master ]

jobs:
update-sponsors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/*

- run: corepack enable && pnpm i

- name: Update sponsors
run: npm run build
env:
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORKIT_GITHUB_TOKEN }}
SPONSORKIT_GITHUB_LOGIN: miggi92

- name: Commit
uses: EndBug/add-and-commit@v9
with:
author_name: GitHub Actions
author_email: 41898282+github-actions[bot]@users.noreply.github.com
message: 'chore: update sponsors.svg [ci skip]'
add: "sponsors.*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8a1f181

Please sign in to comment.