Skip to content

Commit

Permalink
spacing for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
rkeur7 committed Oct 29, 2024
1 parent bf5dc2f commit 534ef9e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 22 deletions.
48 changes: 26 additions & 22 deletions .github/workflows/sdk_generation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ permissions:
pull-requests: write
statuses: write
id-token: write

on:
workflow_dispatch:
inputs:
Expand All @@ -14,29 +15,32 @@ on:
default: false
schedule:
- cron: 0 0 * * *

jobs:
generate:
runs-on: ubuntu-latest
steps:
- 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:
secret-ids: |
dev-main-speakeasy-api-key
name-transformation: uppercase
parse-json-secrets: true
- name: "Speakeasy Generate"
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: ${{ env.DEV_MAIN_SPEAKEASY_API_KEY_PHP_API_KEY }}
- 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:
secret-ids: |
dev-main-speakeasy-api-key
name-transformation: uppercase
parse-json-secrets: true

- name: Speakeasy Generate
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: ${{ env.DEV_MAIN_SPEAKEASY_API_KEY_PHP_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/sdk_validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Validate
permissions:
contents: write
id-token: write

on:
workflow_call:
pull_request:
Expand All @@ -20,28 +21,34 @@ jobs:
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:
secret-ids: |
dev-main-speakeasy-api-key
name-transformation: uppercase
parse-json-secrets: true

- name: Check out repository
uses: actions/checkout@v4

- name: Set up PHP
id: setup_php
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'

- name: cache dependencies
uses: actions/cache@v4
with:
path: ./vendor
key: python-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('setup.py') }}

- name: Install dependencies
run: |
make install
- name: Check
run: make check
env:
Expand Down

0 comments on commit 534ef9e

Please sign in to comment.