-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,21 +17,33 @@ on: | |
- cron: 0 0 * * * | ||
|
||
jobs: | ||
gather-secrets: | ||
uses: ./.github/workflows/secrets_retrieval.yaml | ||
with: | ||
environment: dev-main | ||
|
||
speakeasy_generate: | ||
needs: gather-secrets | ||
generate: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
concurrency: | ||
group: php-sdk-check | ||
steps: | ||
- name: Generate SDK | ||
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 | ||
- name: Authenticate with AWS | ||
uses: goshippo/shippo-action-workflows/.github/actions/[email protected] | ||
with: | ||
environment: dev-main | ||
oidc-name: shippo-php-sdk-pipeline | ||
login-to-ecr: false | ||
|
||
- name: Get Speakeasy Secrets Manager | ||
uses: aws-actions/aws-secretsmanager-get-secrets@v2 | ||
with: | ||
force: ${{ github.event.inputs.force }} | ||
mode: pr | ||
speakeasy_version: latest | ||
env: | ||
github_access_token: ${{ secrets.GITHUB_TOKEN }} | ||
speakeasy_api_key: ${{ jobs.gather-secrets.outputs.get-secrets.DEV_MAIN_SPEAKEASY_API_KEY_PHP_API_KEY }} # Reference the output directly | ||
secret-ids: | | ||
dev-main-speakeasy-api-key | ||
name-transformation: uppercase | ||
parse-json-secrets: true | ||
|
||
# - name: Generate SDK | ||
# uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 | ||
# with: | ||
# force: ${{ github.event.inputs.force }} | ||
# mode: pr | ||
# speakeasy_version: latest | ||
# env: | ||
# github_access_token: ${{ secrets.GITHUB_TOKEN }} | ||
# speakeasy_api_key: ${{ jobs.gather-secrets.outputs.get-secrets.DEV_MAIN_SPEAKEASY_API_KEY_PHP_API_KEY }} # Reference the output directly |