xo-energy / action-octopus-build-information

GitHub Action that generates build information for Octopus Deploy
ISC License
4 stars 4 forks source link

Error: The "path" argument must be one of type string, Buffer, or URL. Received type undefined #22

Closed dapperdandev closed 2 years ago

dapperdandev commented 2 years ago

This error could be clarified. The only thing I can think of is that it wants me to provide a value for output_path, but the documentation makes it sound like it's optional.

output_path: The path to an output directory. When present, this action writes these files: ${output_path}/buildInformation.json: the build information JSON. ${output_path}/buildInformationMapped-${package_id}.json: the full, mapped build information returned by the Octopus Deploy server after pushing build information for ${package_id}.

My configuration:

      - name: Generate Octopus Deploy build information
        uses: xo-energy/action-octopus-build-information@v1.0.0
        with:
          octopus_api_key: ${{ secrets.OCTOPUSSERVERAPIKEY }}
          octopus_server: ${{ secrets.OCTOPUSSERVERURL }}
          octopus_project: ${{ inputs.OCTOPUS_PROJECT }}
          push_package_ids: ${{ inputs.OCTOPUS_PROJECT }}
          push_version: ${{ env.PACKAGE_VERSION }}
wjrogers commented 2 years ago

Are you sure you're using the latest version? I fixed a bug involving output_path a while ago (#2). Or do you have any more detail from the error log to help me narrow it down?

dapperdandev commented 2 years ago

Looks like I may not be. I'm seeing you have a release 1.1.2 and I'm on 1.0.0. I copied from the readme, which looks like it may not be kept up to date as releases are cut.

wjrogers commented 2 years ago

Ok, let me know if you still run into this w/ the latest version. (Note I'm using GitHub's recommended versioning method of a "floating" v1 tag that is updated to point to the latest release.)