diff --git a/.github/workflows/build-docker.yaml b/.github/workflows/build-docker.yaml index 74fb0a3a..690cd3b9 100644 --- a/.github/workflows/build-docker.yaml +++ b/.github/workflows/build-docker.yaml @@ -45,8 +45,10 @@ jobs: type=sha,format=long - name: Build and push Docker image - uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6,18.0 + uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0 with: + cache-from: type=gha + cache-to: type=gha,mode=max context: . platforms: linux/amd64,linux/arm64,linux/arm64/v8 push: true diff --git a/.github/workflows/workflow-executor.yaml b/.github/workflows/workflow-executor.yaml index 083f10bc..749b684b 100644 --- a/.github/workflows/workflow-executor.yaml +++ b/.github/workflows/workflow-executor.yaml @@ -216,7 +216,7 @@ jobs: - id: run-workflow name: Run Generation Workflow if: ${{ steps.check-label.outputs.short_circuit_label_trigger != 'true' }} - uses: speakeasy-api/sdk-generation-action@v15 + uses: speakeasy-api/sdk-generation-action@invalid-changelog with: speakeasy_version: ${{ inputs.speakeasy_version }} github_access_token: ${{ secrets.github_access_token }} @@ -250,7 +250,7 @@ jobs: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - id: log-result name: Log Generation Output - uses: speakeasy-api/sdk-generation-action@v15 + uses: speakeasy-api/sdk-generation-action@invalid-changelog if: ${{ steps.check-label.outputs.short_circuit_label_trigger != 'true'}} with: speakeasy_version: ${{ inputs.speakeasy_version }} @@ -316,7 +316,7 @@ jobs: python setup.py sdist bdist_wheel twine upload dist/* - id: publish-event - uses: speakeasy-api/sdk-generation-action@v15 + uses: speakeasy-api/sdk-generation-action@invalid-changelog if: always() with: github_access_token: ${{ secrets.github_access_token }} @@ -341,7 +341,7 @@ jobs: env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - id: log-result - uses: speakeasy-api/sdk-generation-action@v15 + uses: speakeasy-api/sdk-generation-action@invalid-changelog if: always() with: speakeasy_version: ${{ inputs.speakeasy_version }} @@ -386,7 +386,7 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.npm_token }} run: npm publish --access public - id: publish-event - uses: speakeasy-api/sdk-generation-action@v15 + uses: speakeasy-api/sdk-generation-action@invalid-changelog if: always() with: github_access_token: ${{ secrets.github_access_token }} @@ -411,7 +411,7 @@ jobs: env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - id: log-result - uses: speakeasy-api/sdk-generation-action@v15 + uses: speakeasy-api/sdk-generation-action@invalid-changelog if: always() with: speakeasy_version: ${{ inputs.speakeasy_version }} @@ -472,7 +472,7 @@ jobs: SONATYPE_SIGNING_KEY: ${{ secrets.java_gpg_secret_key }} SIGNING_KEY_PASSPHRASE: ${{ secrets.java_gpg_passphrase }} - id: publish-event - uses: speakeasy-api/sdk-generation-action@v15 + uses: speakeasy-api/sdk-generation-action@invalid-changelog if: always() with: github_access_token: ${{ secrets.github_access_token }} @@ -497,7 +497,7 @@ jobs: env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - id: log-result - uses: speakeasy-api/sdk-generation-action@v15 + uses: speakeasy-api/sdk-generation-action@invalid-changelog if: always() with: speakeasy_version: ${{ inputs.speakeasy_version }} @@ -547,7 +547,7 @@ jobs: gem build *.gemspec gem push *.gem - id: publish-event - uses: speakeasy-api/sdk-generation-action@v15 + uses: speakeasy-api/sdk-generation-action@invalid-changelog if: always() with: github_access_token: ${{ secrets.github_access_token }} @@ -572,7 +572,7 @@ jobs: env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - id: log-result - uses: speakeasy-api/sdk-generation-action@v15 + uses: speakeasy-api/sdk-generation-action@invalid-changelog if: always() with: speakeasy_version: ${{ inputs.speakeasy_version }} @@ -612,7 +612,7 @@ jobs: - name: Publish run: dotnet pack -c Release -o . && dotnet nuget push *.nupkg --api-key ${{ secrets.nuget_api_key }} --source https://api.nuget.org/v3/index.json - id: publish-event - uses: speakeasy-api/sdk-generation-action@v15 + uses: speakeasy-api/sdk-generation-action@invalid-changelog if: always() with: github_access_token: ${{ secrets.github_access_token }} @@ -637,7 +637,7 @@ jobs: env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - id: log-result - uses: speakeasy-api/sdk-generation-action@v15 + uses: speakeasy-api/sdk-generation-action@invalid-changelog if: always() with: speakeasy_version: ${{ inputs.speakeasy_version }} @@ -678,7 +678,7 @@ jobs: repository_name: ${{ github.repository }} repository_base_url: ${{ github.server_url }} - id: publish-event - uses: speakeasy-api/sdk-generation-action@v15 + uses: speakeasy-api/sdk-generation-action@invalid-changelog if: always() with: github_access_token: ${{ secrets.github_access_token }} @@ -703,7 +703,7 @@ jobs: env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - id: log-result - uses: speakeasy-api/sdk-generation-action@v15 + uses: speakeasy-api/sdk-generation-action@invalid-changelog if: always() with: speakeasy_version: ${{ inputs.speakeasy_version }} diff --git a/action.yml b/action.yml index 762c6518..9a58865b 100644 --- a/action.yml +++ b/action.yml @@ -195,7 +195,7 @@ outputs: description: "The release tag used for standalone ts mcp binaries" runs: using: "docker" - image: "docker://ghcr.io/speakeasy-api/sdk-generation-action:v15" + image: "docker://ghcr.io/speakeasy-api/sdk-generation-action:pr-228" env: SPEAKEASY_API_KEY: ${{ inputs.speakeasy_api_key }} SPEAKEASY_SERVER_URL: ${{ inputs.speakeasy_server_url }} diff --git a/internal/actions/runWorkflow.go b/internal/actions/runWorkflow.go index c2a18f52..061e1116 100644 --- a/internal/actions/runWorkflow.go +++ b/internal/actions/runWorkflow.go @@ -5,6 +5,7 @@ import ( "os" "strings" + "github.com/davecgh/go-spew/spew" "github.com/google/go-github/v63/github" "github.com/pkg/errors" "github.com/speakeasy-api/sdk-generation-action/internal/utils" @@ -172,6 +173,8 @@ func RunWorkflow() error { return nil } + return fmt.Errorf("Run res: %s", spew.Sdump(runRes)) + if err := finalize(finalizeInputs{ Outputs: outputs, BranchName: branchName, diff --git a/internal/cli/cli.go b/internal/cli/cli.go index ede48323..20bd8f03 100644 --- a/internal/cli/cli.go +++ b/internal/cli/cli.go @@ -140,6 +140,8 @@ func GetChangelog(lang, genVersion, previousGenVersion string, targetVersions ma args = append(args, "-p", strings.Join(previosVersionsStrings, ",")) } + return "", fmt.Errorf("About to run changelog command: %s", strings.Join(args, " ")) + out, err := runSpeakeasyCommand(args...) if err != nil { return "", err diff --git a/internal/cli/run.go b/internal/cli/run.go index 6f02ea31..50336f87 100644 --- a/internal/cli/run.go +++ b/internal/cli/run.go @@ -25,6 +25,8 @@ func Run(sourcesOnly bool, installationURLs map[string]string, repoURL string, r "run", } + os.Setenv("SPEAKEASY_LOG_LEVEL", "debug") + if sourcesOnly { args = append(args, "-s", "all") } else {