Skip to content

Commit 7ab6b5f

Browse files
committed
ci: trigger update by "octokit/openapi release" repository event type, setup release notification
1 parent 8282fac commit 7ab6b5f

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release notification
2+
on:
3+
release:
4+
types:
5+
- published
6+
7+
jobs:
8+
notify:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: gr2m/release-notifier-action@v1
12+
with:
13+
app_id: ${{ secrets.RELEASE_NOTIFIER_APP_ID }}
14+
private_key: ${{ secrets.RELEASE_NOTIFIER_APP_PRIVATE_KEY }}
15+
dispatch_event_type: "octokit/openapi-types.ts release"

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ jobs:
1717
- run: npm ci
1818
- run: npx semantic-release
1919
env:
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
2121
NPM_TOKEN: ${{ secrets.OCTOKITBOT_NPM_TOKEN }}

.github/workflows/update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Update
22
on:
33
repository_dispatch:
4-
types: [octokit/openapi-release]
4+
types: ["octokit/openapi release"]
55

66
push:
77
branches:

0 commit comments

Comments
 (0)