Skip to content

Commit

Permalink
ci: trigger update by "octokit/openapi release" repository event type…
Browse files Browse the repository at this point in the history
…, setup release notification
  • Loading branch information
gr2m committed Nov 28, 2020
1 parent 8282fac commit 7ab6b5f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release-notification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Release notification
on:
release:
types:
- published

jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: gr2m/release-notifier-action@v1
with:
app_id: ${{ secrets.RELEASE_NOTIFIER_APP_ID }}
private_key: ${{ secrets.RELEASE_NOTIFIER_APP_PRIVATE_KEY }}
dispatch_event_type: "octokit/openapi-types.ts release"
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
- run: npm ci
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
NPM_TOKEN: ${{ secrets.OCTOKITBOT_NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Update
on:
repository_dispatch:
types: [octokit/openapi-release]
types: ["octokit/openapi release"]

push:
branches:
Expand Down

0 comments on commit 7ab6b5f

Please sign in to comment.