-
Notifications
You must be signed in to change notification settings - Fork 158
60 lines (54 loc) · 2.01 KB
/
write-changelogs.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Write Changelogs
on:
pull_request:
paths:
# Changelogs
- "packages/cli/cli/versions.yml"
- "generators/csharp/model/versions.yml"
- "generators/csharp/sdk/versions.yml"
- "generators/python/fastapi/versions.yml"
- "generators/go/model/versions.yml"
- "generators/go/sdk/versions.yml"
- "generators/java/model/versions.yml"
- "generators/java/sdk/versions.yml"
- "generators/java/spring/versions.yml"
- "generators/openapi/versions.yml"
- "generators/postman/versions.yml"
- "generators/python/pydantic/versions.yml"
- "generators/python/sdk/versions.yml"
- "generators/ruby/model/versions.yml"
- "generators/ruby/sdk/versions.yml"
- "generators/php/sdk/versions.yml"
- "generators/php/model/versions.yml"
- "generators/typescript/express/versions.yml"
# This file
- ".github/workflows/write-changelogs.yml"
jobs:
write-changelogs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.FERN_GITHUB_PAT }}
- name: Install
uses: ./.github/actions/install
- name: Write generator changelogs
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: |
echo "Generating changelogs for generators"
pnpm seed:local generate changelog generator -o ./fern/pages/changelogs/ --clean-directory
- name: Write CLI changelogs
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: |
echo "Generating changelogs for CLI"
pnpm seed:local generate changelog cli -o ./fern/pages/changelogs/cli/ --clean-directory
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update changelog"
add_options: -A
file_pattern: fern/pages/changelogs/