From c0dafdc561682d0ef3a5ba1c3aa0f86d14045342 Mon Sep 17 00:00:00 2001 From: Luke Hagar Date: Mon, 16 Sep 2024 18:39:42 +0000 Subject: [PATCH] actions updates --- .github/workflows/sdk_generation.yaml | 29 ++++++++++++++++++ .../workflows/speakeasy_sdk_generation.yml | 30 ------------------- .github/workflows/tagging.yaml | 20 ------------- 3 files changed, 29 insertions(+), 50 deletions(-) create mode 100644 .github/workflows/sdk_generation.yaml delete mode 100644 .github/workflows/speakeasy_sdk_generation.yml delete mode 100644 .github/workflows/tagging.yaml diff --git a/.github/workflows/sdk_generation.yaml b/.github/workflows/sdk_generation.yaml new file mode 100644 index 0000000..05bdd70 --- /dev/null +++ b/.github/workflows/sdk_generation.yaml @@ -0,0 +1,29 @@ +name: Generate +permissions: + checks: write + contents: write + pull-requests: write + statuses: write +"on": + workflow_dispatch: + inputs: + force: + description: Force generation of SDKs + type: boolean + default: false + set_version: + description: optionally set a specific SDK version + type: string + schedule: + - cron: 0 0 * * * +jobs: + generate: + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 + with: + force: ${{ github.event.inputs.force }} + mode: direct + set_version: ${{ github.event.inputs.set_version }} + speakeasy_version: latest + secrets: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/speakeasy_sdk_generation.yml b/.github/workflows/speakeasy_sdk_generation.yml deleted file mode 100644 index 6b8783b..0000000 --- a/.github/workflows/speakeasy_sdk_generation.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Generate -permissions: - checks: write - contents: write - pull-requests: write - statuses: write -"on": - workflow_dispatch: - inputs: - force: - description: Force generation of SDKs - type: boolean - default: false - push_code_samples_only: - description: Force push only code samples from SDK generation - type: boolean - default: false - schedule: - - cron: 0 0 * * * -jobs: - generate: - uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 - with: - force: ${{ github.event.inputs.force }} - mode: direct - push_code_samples_only: ${{ fromJSON(github.event.inputs.push_code_samples_only) }} - speakeasy_version: latest - secrets: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/tagging.yaml b/.github/workflows/tagging.yaml deleted file mode 100644 index 3ea4a0f..0000000 --- a/.github/workflows/tagging.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: Speakeasy Tagging -permissions: - checks: write - contents: write - pull-requests: write - statuses: write -"on": - push: - branches: - - main - paths: [] - workflow_dispatch: {} -jobs: - tag: - uses: speakeasy-api/sdk-generation-action/.github/workflows/tag.yaml@v15 - with: - registry_tags: main - secrets: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}