forked from mirrors/action-gh-release
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
674bcd2d67
commit
2934fce629
6 changed files with 95 additions and 41 deletions
|
@ -16,6 +16,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 => {
|
||||
|
@ -51,7 +52,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