Skip to content

update-constants #21874

update-constants

update-constants #21874

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