Scheduled Trigger Go CI #51
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: Scheduled Trigger Go CI | |
on: | |
schedule: | |
- cron: '0 0 * * *' # every day at midnight for UTC | |
# This command allows us to run the Action automatically from the Actions tab. | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
check-latest: false | |
cache: false | |
- name: Install dependencies and build | |
run: go mod download -x | |
- name: Build | |
run: go build -o crawler crawler.go | |
- name: Run | |
run: go run . | |
- name: Deploy | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
commit_message: "upd: Kvkk data updated" | |
file_pattern: "*.json" |