-
Notifications
You must be signed in to change notification settings - Fork 56
33 lines (31 loc) · 826 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Update json and readme
on:
workflow_dispatch:
schedule:
- cron: '0 */24 * * *'
jobs:
build:
runs-on: ubuntu-latest
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
steps:
- uses: actions/checkout@v1
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: 18.x
- name: update json and readme
run: |
yarn
node index.mjs
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "update json and README"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}