Skip to content

Commit e6fe39a

Browse files
authored
Run SDK generation after release job (#340)
* run after release job * use bot pat * Fix token placement * Run this with a gh cli command
1 parent 67f68c0 commit e6fe39a

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/generate-references.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
name: "Generate References"
22

33
on:
4-
release:
5-
types: [published]
64
workflow_dispatch:
75

86
jobs:
97
docs-generation:
108
name: Generate references
11-
permissions:
12-
contents: write
139
runs-on: ubuntu-latest
1410
steps:
1511
- name: Checkout the repository
@@ -45,7 +41,7 @@ jobs:
4541
echo "No new references generated in references directory"
4642
fi
4743
48-
- uses: stefanzweifel/git-auto-commit-action@b3e3f72439fc3af08948f989a19a825463598a
44+
- uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0
4945
if: steps.changes.outputs.changed == 'true'
5046
with:
5147
commit_message: "Update generated references"

.github/workflows/release.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ jobs:
4949
with:
5050
tag_name: v${{ env.REPO_VERSION }}
5151
release_name: ${{ env.REPO_VERSION }}
52+
53+
- name: Dispatch generate-references for posthog-python
54+
env:
55+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
run: |
57+
gh workflow run generate-references.yml --ref master

0 commit comments

Comments
 (0)