main #126
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: main | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 7 * * 0' | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install NPM Packages | |
uses: bahmutov/npm-install@v1 | |
- name: Configure Git | |
run: | | |
git config --global user.name "GitHub Actions" | |
git config --global user.email "[email protected]" | |
- name: Run | |
run: npm start | |
- name: Push generated files | |
run: | | |
git add -A | |
if ! git diff-index --quiet HEAD --; then | |
echo "Generated files changed!" | |
git commit -m "Update generated files" | |
git push https://osyrisrblx:${{ secrets.github_token }}@github.com/roblox-ts/devhub-scraper.git HEAD:master | |
fi |