-
Notifications
You must be signed in to change notification settings - Fork 16
34 lines (27 loc) · 1.01 KB
/
autogen.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
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: README autogen
on: workflow_dispatch
jobs:
generate:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Build
run: cd autogen && go build -o ../bin/db-papers
- name: Generate
env:
DB_PAPERS_ADDR_FORMAT: ${{ secrets.DB_PAPERS_ADDR_FORMAT }}
DB_PAPERS_SHEED_ID: ${{ secrets.DB_PAPERS_SHEED_ID }}
DB_PAPERS_SHEED_NAME: ${{ secrets.DB_PAPERS_SHEED_NAME }}
run: bin/db-papers --addr-format "$DB_PAPERS_ADDR_FORMAT" --sheet-id "$DB_PAPERS_SHEED_ID" --sheet-name "$DB_PAPERS_SHEED_NAME"
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: update papers/README.md automatically
file_pattern: 'README.md papers/*'