-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (38 loc) · 1.2 KB
/
schedule.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Update pricing data
# run this action every day
on:
workflow_dispatch:
schedule:
- cron: "0 1 * * *"
jobs:
build:
runs-on: ubuntu-latest
env:
TZ: Asia/Shanghai
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.18
- name: Fetch latest pricing data
run: |
export API_KEY_GCP=${{ secrets.API_KEY_GCP }}
go run seed/main.go
- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
commit-message: "chore: update pricing data"
author: GitHub <noreply@github.com>
branch: update-pricing-data
delete-branch: true
title: "chore: update pricing data"
body: |
This PR means that our GitHub Action CronJob has detected an update to the pricing data.
This is a fairly rare event, so if anyone sees this PR, please check the results of the actions run first.
Before merging this PR, make sure the actions logs are as expected.
labels: |
data update
automated
draft: false