Skip to content

price-cron

price-cron #583

Workflow file for this run

name: price-cron
on:
schedule:
- cron: "0 2 * * *" # every day at 7:00 AM NPT (Conversion due to UTC time)
jobs:
build:
name: Build and Commit Changes
runs-on: ubuntu-latest
environment: GITHUB_TOKEN
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: RUN
run: go run main.go
- name: Configure Git
run: |
git config --local user.email "[email protected]"
git config --local user.name "Kalimati Bot"
- name: Commit Files
run: |
git add .
git commit -m "Update data"
- name: Push Changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.TOKEN }}