Skip to content

Commit 236766f

Browse files
lookascsbruhns
andauthored
chore(STRINGS-2428): Add workflow to automate Strings OpenAPI changes (#847)
Co-authored-by: Stefan Bruhns <stefan.bruhns@phrase.com>
1 parent e5be196 commit 236766f

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Dispatch Developer Hub Workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
dispatch:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Send repository_dispatch to phrase/developer-hub
13+
uses: peter-evans/repository-dispatch@0eae9e597ebc81bcc8c2220e34ddff4bc7c769b3
14+
with:
15+
token: ${{ secrets.DISPATCH_DEVELOPER_HUB_TOKEN }}
16+
repository: phrase/developer-hub
17+
event-type: trigger-strings-workflow
18+
client-payload: '{"source": "phrase/openapi", "type": "update"}'

.github/workflows/lawa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ jobs:
99
ruby-version: 3.1.3
1010
decisions-file: config/license-decisions.yml
1111
secrets:
12-
github-token: ${{ secrets.GH_ACCESS_TOKEN }}
12+
github-token: ${{ secrets.GH_LAWA_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)