mirror of
https://github.com/microcron/pink.git
synced 2026-04-27 18:22:13 +00:00
28 lines
649 B
YAML
28 lines
649 B
YAML
name: pink
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 */2 * *'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: houses/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
- run: node pink.js
|
|
env:
|
|
OPENROUTER_KEY: ${{ secrets.OPENROUTER_KEY }}
|
|
NTFY_URL: ${{ secrets.NTFY_URL }}
|
|
- run: |
|
|
git config user.name "pink"
|
|
git config user.email "pink@microcron"
|
|
git add '?/*.json'
|
|
git diff --cached --quiet || git commit -m "🩷 $(date -u +'%Y-%m-%d %H:%MZ')"
|
|
git push
|