Skip to content

[ISSUE]: gitrealeasemanager/create does not include targetcommitish and inputFilePath parameters #1432

@TaffarelJr

Description

@TaffarelJr

Prerequisites

  • I have written a descriptive issue title
  • I have searched issues to ensure it has not already been reported

GitVersion package

GitHub Actions

What are you seeing?

When using the gitreleasemanager/create action, there are parameters defined for targetcommitish and inputFilePath; however, upon execution, those parameters are not included in the command line sent to dotnet-gitreleasemanager.

Sample GitHub Action:

- uses: gittools/actions/gitreleasemanager/create@v3
  with:
    owner: ${{ github.repository_owner }}
    token: ${{ secrets.GITHUB_TOKEN }}
    repository: my-repo
    targetDirectory: ${{ github.workspace }}
    targetcommitish: ${{ github.sha }}              # <-- property is valid
    name: v${{ steps.gitversion.outputs.semVer }}
    inputFilePath: ReleaseNotes.md                  # <-- property is valid

Command-line generated from the above Action (wrapped for readability):

/opt/hostedtoolcache/GitReleaseManager.Tool/0.18.0/dotnet-gitreleasemanager create
  --owner my-org
  --token ***
  --repository my-repo
  --targetDirectory /home/runner/work/my-repo/my-repo
  --name v1.2.3

( --targetcommitish and --inputFilePath command-line parameters left out)

What is expected?

--targetcommitish and --inputFilePath command-line parameters should be included, as specified in the Action:

/opt/hostedtoolcache/GitReleaseManager.Tool/0.18.0/dotnet-gitreleasemanager create
  --owner my-org
  --token ***
  --repository my-repo
  --targetDirectory /home/runner/work/my-repo/my-repo
  --targetcommitish edf8f64259dca665f01c1da5fff9650b7e342b69
  --name v1.2.3
  --inputFilePath ReelaseNotes.md

Steps to Reproduce

Include the targetcommitish and inputFilePath parameters in a GitHub Action,
and observe the corresponding --targetcommitish and --inputFilePath command-line parameters are not generated.

Output log or link to your CI build (if appropriate).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions