Generate Metadata JSON files #383
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: Generate Metadata JSON files | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
- name: Install yarn | |
run: npm i yarn -g | |
- name: Install dependencies | |
run: yarn install | |
- name: Compile scripts | |
run: yarn compile:scripts | |
- name: Run script | |
run: node scriptsOut/index.js | |
- name: Commit and push changes | |
run: | | |
git config --global user.email "${{secrets.EMAIL}}" | |
git config --global user.name "${{secrets.NAME}}" | |
git add . | |
git commit -am "generated dir metadata" || echo "Couldn't generate metadata" | |
git push |