Skip to content

Commit 8599191

Browse files
committed
try to fi github workflows
1 parent ef973a9 commit 8599191

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/sdk_generation.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,34 @@ permissions:
44
contents: write
55
pull-requests: write
66
statuses: write
7+
id-token: write
78
"on":
89
workflow_dispatch:
910
inputs:
1011
force:
1112
description: Force generation of SDKs
1213
type: boolean
1314
default: false
14-
push_code_samples_only:
15-
description: Force push only code samples from SDK generation
16-
type: boolean
17-
default: false
1815
set_version:
1916
description: optionally set a specific SDK version
2017
type: string
2118
schedule:
2219
- cron: 0 0 * * *
20+
pull_request:
21+
types:
22+
- labeled
23+
- unlabeled
2324
jobs:
2425
generate:
2526
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
2627
with:
2728
force: ${{ github.event.inputs.force }}
28-
push_code_samples_only: ${{ fromJSON(github.event.inputs.push_code_samples_only != '' && github.event.inputs.push_code_samples_only || 'false') }}
29+
mode: pr
2930
set_version: ${{ github.event.inputs.set_version }}
30-
speakeasy_version: latest
3131
secrets:
3232
github_access_token: ${{ secrets.GITHUB_TOKEN }}
33+
heuk3iag: ${{ secrets.HEUK3IAG }}
3334
java_gpg_passphrase: ${{ secrets.JAVA_GPG_PASSPHRASE }}
3435
java_gpg_secret_key: ${{ secrets.JAVA_GPG_SECRET_KEY }}
3536
ossrh_password: ${{ secrets.OSSRH_PASSWORD }}
36-
ossrh_username: ${{ secrets.OSSRH_USERNAME }}
3737
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.github/workflows/sdk_publish.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,22 @@ permissions:
44
contents: write
55
pull-requests: write
66
statuses: write
7+
id-token: write
78
"on":
89
push:
910
branches:
1011
- main
1112
paths:
12-
- RELEASES.md
13-
- "*/RELEASES.md"
13+
- .speakeasy/gen.lock
14+
workflow_dispatch: {}
1415
jobs:
1516
publish:
1617
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
18+
with:
19+
target: hathora-java
1720
secrets:
1821
github_access_token: ${{ secrets.GITHUB_TOKEN }}
22+
heuk3iag: ${{ secrets.OSSRH_USERNAME }}
1923
java_gpg_passphrase: ${{ secrets.JAVA_GPG_PASSPHRASE }}
2024
java_gpg_secret_key: ${{ secrets.JAVA_GPG_SECRET_KEY }}
2125
ossrh_password: ${{ secrets.OSSRH_PASSWORD }}

0 commit comments

Comments
 (0)