update-constants #21885
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-constants | |
on: | |
schedule: | |
- cron: '0 * * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install regression | |
run: npm i regression | |
- name: Run script | |
run: node index.js | |
- name: Setup SSH Key | |
env: | |
USERNAME: ${{ secrets.USERNAME }} | |
TOKEN: ${{ secrets.TOKEN }} | |
run: git remote set-url origin https://$USERNAME:[email protected]/$USERNAME/SekaiCutoffRate.git | |
- name: Check for changes | |
run: git status | |
- name: Stage changed files | |
run: git add -A | |
- name: Commit changed files | |
run: | | |
git config user.email [email protected] | |
git config user.name "potor" | |
git commit -m "Updating rate.json" || echo "No changes to commit" | |
- name: Push code to master | |
run: git push origin HEAD:master |