Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publishing failure Error: Invalid format 'Published API ... with GH action #293

Closed
snazy opened this issue Apr 11, 2023 · 3 comments · Fixed by #294
Closed

Publishing failure Error: Invalid format 'Published API ... with GH action #293

snazy opened this issue Apr 11, 2023 · 3 comments · Fixed by #294

Comments

@snazy
Copy link

snazy commented Apr 11, 2023

Q&A (please complete the following information)

  • CLI version: 0.7.1 (0.6.5 was fine, 0.7.0 ran into Publishing failure via GitHub action #290)
  • OS: Linux / Ubuntu 22.04 (standard GH hosted runner)
  • Node.js version: n/a (Docker)
  • SwaggerHub version if On-Premise: n/a

Describe the bug you're encountering

After the bump of the Swaggerhub GitHub action from 0.6.5 to 0.7.1, publishing fails with the following exception. The call site looks like this:

    - name: Update SwaggerHub
      uses: smartbear/swaggerhub-cli@v0.7.1
      env:
        XDG_CONFIG_HOME: "/tmp"
        SWAGGERHUB_API_KEY: ${{ secrets.SWAGGERHUB_API_KEY }}
        SWAGGERHUB_URL: "https://api.swaggerhub.com"
      with:
        args: api:create projectnessie/nessie -f ${{ env.NESSIE_OPENAPI }} --published=publish --setdefault --visibility=public

Error message

Run smartbear/swaggerhub-cli@v0.7.1
  with:
    args: api:create projectnessie/nessie -f api/model/build/nessie-openapi-0.57.0.yaml --published=publish --setdefault --visibility=public
  env:
    RELEASE_VERSION: 0.57.0
    GIT_TAG: nessie-0.57.0
    JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.18-10/x64
    JAVA_HOME_11_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.18-10/x64
    pythonLocation: /opt/hostedtoolcache/Python/3.8.16/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.16/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.16/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.16/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.16/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.16/x64/lib
    QUARKUS_UBER_JAR: ../build-artifacts/nessie-quarkus-0.57.0-runner.jar
    CLI_UBER_JAR: ../build-artifacts/nessie-quarkus-cli-0.57.0-runner.jar
    QUARKUS_NATIVE_BINARY: ../build-artifacts/nessie-quarkus-0.57.0-runner
    GC_EXEC: gc/gc-tool/build/executable/nessie-gc-0.57.0
    NESSIE_OPENAPI: api/model/build/nessie-openapi-0.57.0.yaml
    NESSIE_HELM_CHART: nessie-helm-0.57.0.tgz
    NOTES_FILE: /tmp/tmp.gpKA7ukQUu/release-notes.md
    XDG_CONFIG_HOME: /tmp
    SWAGGERHUB_API_KEY: ***
    SWAGGERHUB_URL: https://api.swaggerhub.com/
/usr/bin/docker run --name de<REDACTED>ad --label <REDACTED> --workdir /github/workspace --rm -e "RELEASE_VERSION" -e "GIT_TAG" -e "JAVA_HOME" -e "JAVA_HOME_11_X64" -e "pythonLocation" -e "PKG_CONFIG_PATH" -e "Python_ROOT_DIR" -e "Python2_ROOT_DIR" -e "Python3_ROOT_DIR" -e "LD_LIBRARY_PATH" -e "QUARKUS_UBER_JAR" -e "CLI_UBER_JAR" -e "QUARKUS_NATIVE_BINARY" -e "GC_EXEC" -e "NESSIE_OPENAPI" -e "NESSIE_HELM_CHART" -e "NOTES_FILE" -e "XDG_CONFIG_HOME" -e "SWAGGERHUB_API_KEY" -e "SWAGGERHUB_URL" -e "INPUT_ARGS" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true --entrypoint "/cli/gh_entrypoint.sh" -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/nessie/nessie":"/github/workspace" de<REDACTED>ad api:create projectnessie/nessie -f api/model/build/nessie-openapi-0.57.0.yaml --published=publish --setdefault --visibility=public
Error: Unable to process file command 'output' successfully.
Error: Invalid format 'Published API projectnessie/nessie/0.57.0'
snazy added a commit to snazy/nessie that referenced this issue Apr 11, 2023
snazy added a commit to projectnessie/nessie that referenced this issue Apr 11, 2023
@snazy
Copy link
Author

snazy commented Apr 11, 2023

The actual publishing however worked (https://app.swaggerhub.com/apis/projectnessie/nessie/0.57.0 is there)

@CalemRoelofsSB
Copy link
Contributor

Hey @snazy, thank you for creating this issue and providing all the details you have given!
This has now been fixed and a new release for v0.7.2 has been created and should be available for you to try now.

@snazy
Copy link
Author

snazy commented Apr 15, 2023

Thanks!
Works fine now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants