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

Support custom target_commitish value #76

Merged
merged 12 commits into from May 3, 2021

Conversation

ThomasPiskol
Copy link
Contributor

This PR introduces a new input target_commitish.

By using this input you can provide a custom value for the commit which is used by the GitHub release.
If this value is not provided, GitHub will use the default branch, see the API documentation.

Now it's possible to provide a specific commit if you create a release without a tag:

    - name: Release
      if: github.ref == 'refs/heads/master'
      uses: softprops/action-gh-release@v1
      with:
        target_commitish: ${{github.sha}}
        ...

I've update the existing tests and added a new test for checking the parsing of the configuration.

@garronej
Copy link

I wish it be merged

defunctzombie added a commit to foxglove/action-gh-release that referenced this pull request Mar 10, 2021
@c24w
Copy link

c24w commented Apr 20, 2021

Just ran into this problem after naively assuming it would respect the contextual commitish (e.g. GITHUB_SHA). Is there something preventing this being merged (besides conflicts)?

@ThomasPiskol
Copy link
Contributor Author

I've integrated the latest changes from upstream.
@softprops is there anything else what I need to do?

@softprops
Copy link
Owner

Looks good. Thanks for
contributing!

@softprops softprops merged commit 9729932 into softprops:master May 3, 2021
@c24w
Copy link

c24w commented May 4, 2021

Please can you release this, too? We're keen to get this change into our projects, rather than looking for an alternative.

@manorit2001
Copy link

@softprops any tentative date for the new release?

@AlbertCintas
Copy link

Hello! Also would love for the change to be released.

@scooper91
Copy link

Hi @softprops! It looks like this still isn't released. Please can you release it so we can start using the feature? Thanks!

softprops pushed a commit that referenced this pull request Jul 25, 2021
* Make target_commitish configurable

* Store compiled action for testing

* Add target_commitish to metadata

* Allow override of target_commitish for updating

* Print commit usage

* Improve message for commit usage

* Update draft releases too

* Revert "Update draft releases too"

This reverts commit ff30f8e.

* Integrate latest changes from upstream.
softprops pushed a commit that referenced this pull request Jul 26, 2021
* Make target_commitish configurable

* Store compiled action for testing

* Add target_commitish to metadata

* Allow override of target_commitish for updating

* Print commit usage

* Improve message for commit usage

* Update draft releases too

* Revert "Update draft releases too"

This reverts commit ff30f8e.

* Integrate latest changes from upstream.
softprops pushed a commit that referenced this pull request Jul 26, 2021
* Make target_commitish configurable

* Store compiled action for testing

* Add target_commitish to metadata

* Allow override of target_commitish for updating

* Print commit usage

* Improve message for commit usage

* Update draft releases too

* Revert "Update draft releases too"

This reverts commit ff30f8e.

* Integrate latest changes from upstream.
@softprops softprops mentioned this pull request Aug 10, 2021
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 this pull request may close these issues.

None yet

7 participants