-
Notifications
You must be signed in to change notification settings - Fork 126
34 lines (34 loc) · 1.11 KB
/
genai-blog-post.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
name: genai blog post generator
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
fetch-depth: 10
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: yarn
- run: yarn install --frozen-lockfile
- name: compile
run: yarn compile
- name: generate blog post
run: yarn genai:blog-post --out-trace $GITHUB_STEP_SUMMARY
- name: docs
run: yarn build:docs
- uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: "docs/src/content/docs/blog/drafts/*.md"
commit_message: "[genai] generated blog posts"
commit_user_name: "genaiscript"