-
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.19 KB
/
update-data.yml
File metadata and controls
43 lines (36 loc) · 1.19 KB
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
name: Update Data
on:
workflow_dispatch:
schedule:
- cron: '34 5,17 * * *' # Twice a day
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
permissions:
contents: read
env:
GOEXPERIMENT: jsonv2
jobs:
update-data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: 'go.mod'
- run: go generate ./...
env:
WORDFENCE_INTELLIGENCE_API_KEY: ${{ secrets.WORDFENCE_INTELLIGENCE_API_KEY }}
- uses: typisttech/create-auto-merged-pull-request-action@05e85fff478e9ff9dfbb4b6d95622b6a8ebafe78 # v0.2.0
with:
client-id: ${{ vars.TASTENDRUCK_CLIENT_ID }}
private-key: ${{ secrets.TASTENDRUCK_PRIVATE_KEY }}
branch: "tastendruck/github_actions/go-generate/${{ github.ref_name }}"
title: ":robot: `go generate ./...`"
labels: go-generate
add-paths: |
**/*_gen.go
**/*_gen_test.go
**/*_gen.json