Skip to content

Generate

Generate #166

Workflow file for this run

name: Generate
permissions:
checks: write
contents: write
pull-requests: write
statuses: write
id-token: write
on:
workflow_dispatch:
inputs:
force:
description: Force generation of SDKs
type: boolean
default: false
schedule:
- cron: 0 0 * * *
jobs:
retrieve-secrets:
runs-on: ubuntu-latest
outputs:
speakeasy_api_key: ${{ env.DEV_MAIN_SPEAKEASY_API_KEY_PHP_API_KEY }}
steps:
- name: Authenticate with AWS
uses: goshippo/shippo-action-workflows/.github/actions/aws_auth@v1.1.0
with:
environment: dev-main
oidc-name: shippo-php-sdk-pipeline
login-to-ecr: false
- name: Get Speakeasy Secrets Manager
id: get-secrets
uses: aws-actions/aws-secretsmanager-get-secrets@v2
with:
secret-ids: |
dev-main-speakeasy-api-key
name-transformation: uppercase
parse-json-secrets: true
- id: Set env variable

Check failure on line 41 in .github/workflows/sdk_generation.yaml

View workflow run for this annotation

GitHub Actions / Generate

Invalid workflow file

The workflow is not valid. .github/workflows/sdk_generation.yaml (Line: 41, Col: 13): The identifier 'Set env variable' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
run: |
echo "${{ env.DEV_MAIN_SPEAKEASY_API_KEY_PHP_API_KEY }}" >> "$GITHUB_OUTPUT"
test:
runs-on: ubuntu-latest
needs: retrieve-secrets
steps:
- run: |
echo "${{ needs.retrieve-secrets.outputs.speakeasy_api_key }}"
speakeasy-generate:
needs: retrieve-secrets
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
with:
force: ${{ github.event.inputs.force }}
mode: pr
speakeasy_version: latest
secrets:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
speakeasy_api_key: ${{ needs.retrieve-secrets.outputs.speakeasy_api_key }}