mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-10 18:44:19 +00:00
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 ff30f8edb1
.
* Integrate latest changes from upstream.
This commit is contained in:
parent
0a4afc0be2
commit
03c4bc34bd
6 changed files with 73 additions and 19 deletions
|
@ -15,6 +15,7 @@ export interface Config {
|
|||
input_draft?: boolean;
|
||||
input_prerelease?: boolean;
|
||||
input_fail_on_unmatched_files?: boolean;
|
||||
input_target_commitish?: string;
|
||||
}
|
||||
|
||||
export const releaseBody = (config: Config): string | undefined => {
|
||||
|
@ -50,7 +51,8 @@ export const parseConfig = (env: Env): Config => {
|
|||
input_files: parseInputFiles(env.INPUT_FILES || ""),
|
||||
input_draft: env.INPUT_DRAFT === "true",
|
||||
input_prerelease: env.INPUT_PRERELEASE == "true",
|
||||
input_fail_on_unmatched_files: env.INPUT_FAIL_ON_UNMATCHED_FILES == "true"
|
||||
input_fail_on_unmatched_files: env.INPUT_FAIL_ON_UNMATCHED_FILES == "true",
|
||||
input_target_commitish: env.INPUT_TARGET_COMMITISH
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue