-
-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support custom target_commitish value (#76)
* 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.
- Loading branch information
1 parent
674bcd2
commit 2934fce
Showing
6 changed files
with
95 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,54 @@ | ||
# https://help.github.com/en/articles/metadata-syntax-for-github-actions | ||
name: 'GH Release' | ||
description: 'Github Action for creating Github Releases' | ||
author: 'softprops' | ||
name: "GH Release" | ||
description: "Github Action for creating Github Releases" | ||
author: "softprops" | ||
inputs: | ||
body: | ||
description: 'Note-worthy description of changes in release' | ||
description: "Note-worthy description of changes in release" | ||
required: false | ||
body_path: | ||
description: 'Path to load note-worthy description of changes in release from' | ||
description: "Path to load note-worthy description of changes in release from" | ||
required: false | ||
name: | ||
description: 'Gives the release a custom name. Defaults to tag name' | ||
description: "Gives the release a custom name. Defaults to tag name" | ||
required: false | ||
tag_name: | ||
description: 'Gives a tag name. Defaults to github.GITHUB_REF' | ||
description: "Gives a tag name. Defaults to github.GITHUB_REF" | ||
required: false | ||
draft: | ||
description: 'Creates a draft release. Defaults to false' | ||
description: "Creates a draft release. Defaults to false" | ||
required: false | ||
prerelease: | ||
description: 'Identify the release as a prerelease. Defaults to false' | ||
description: "Identify the release as a prerelease. Defaults to false" | ||
required: false | ||
files: | ||
description: 'Newline-delimited list of path globs for asset files to upload' | ||
description: "Newline-delimited list of path globs for asset files to upload" | ||
required: false | ||
fail_on_unmatched_files: | ||
description: 'Fails if any of the `files` globs match nothing. Defaults to false' | ||
description: "Fails if any of the `files` globs match nothing. Defaults to false" | ||
required: false | ||
repository: | ||
description: 'Repository to make releases against, in <owner>/<repo> format' | ||
description: "Repository to make releases against, in <owner>/<repo> format" | ||
required: false | ||
token: | ||
description: 'Authorized secret GitHub Personal Access Token. Defaults to github.token' | ||
description: "Authorized secret GitHub Personal Access Token. Defaults to github.token" | ||
required: false | ||
default: ${{ github.token }} | ||
target_commitish: | ||
description: "Commitish value that determines where the Git tag is created from. Can be any branch or commit SHA." | ||
required: false | ||
env: | ||
'GITHUB_TOKEN': 'As provided by Github Actions' | ||
"GITHUB_TOKEN": "As provided by Github Actions" | ||
outputs: | ||
url: | ||
description: 'URL to the Release HTML Page' | ||
description: "URL to the Release HTML Page" | ||
id: | ||
description: 'Release ID' | ||
description: "Release ID" | ||
upload_url: | ||
description: 'URL for uploading assets to the release' | ||
description: "URL for uploading assets to the release" | ||
runs: | ||
using: 'node12' | ||
main: 'dist/index.js' | ||
using: "node12" | ||
main: "dist/index.js" | ||
branding: | ||
color: 'green' | ||
icon: 'package' | ||
color: "green" | ||
icon: "package" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GitHub's update release API doesn't allow you to change the
target_commitish
for a published release, since the tag already exists:So this log message is misleading, since it is not updating the commit.