Update json and readme #591
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |