price-cron #583
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: 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 }} |