Skip to content

Commit 571527b

Browse files
committed
chore: Add automerge
1 parent 7913917 commit 571527b

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,12 @@ jobs:
3535
# GR4VY_ID: ${{ secrets.GR4VY_ID }}
3636
run: |
3737
npx vitest
38+
39+
mergepal:
40+
runs-on: ubuntu-latest
41+
if: "contains(github.event.head_commit.message, 'Update SDK - Generate')"
42+
steps:
43+
- uses: actions/checkout@v1
44+
- uses: maxkomarychev/[email protected]
45+
with:
46+
token: ${{ secrets.DISPATCH_ACCESS_TOKEN }}

.github/workflows/sdk_generation.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
mode: pr
2424
speakeasy_version: latest
2525
secrets:
26-
github_access_token: ${{ secrets.DISPATCH_ACCESS_TOKEN }}
26+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
2727
npm_token: ${{ secrets.NPM_TOKEN }}
2828
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
2929

@@ -38,6 +38,6 @@ jobs:
3838
- name: Notify SDKs
3939
uses: peter-evans/repository-dispatch@v3
4040
with:
41-
token: ${{ secrets.DISPATCH_ACCESS_TOKEN }}
41+
token: ${{ secrets.GITHUB_TOKEN }}
4242
repository: ${{ matrix.repo }}
4343
event-type: sdk_updated

.github/workflows/sdk_publish.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ permissions:
1414
jobs:
1515
publish:
1616
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
17-
# if: "!contains(github.event.head_commit.message, 'ci: regenerated')"
1817
with:
1918
target: typescript
2019
secrets:
21-
github_access_token: ${{ secrets.DISPATCH_ACCESS_TOKEN }}
20+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
2221
npm_token: ${{ secrets.NPM_TOKEN }}
2322
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
2423

0 commit comments

Comments
 (0)