mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-06-28 14:16:02 +00:00
Make target_commitish configurable
This commit is contained in:
parent
affa18ef97
commit
d0cd6479c6
4 changed files with 46 additions and 17 deletions
|
@ -37,7 +37,8 @@ describe("util", () => {
|
|||
input_prerelease: false,
|
||||
input_files: [],
|
||||
input_name: undefined,
|
||||
input_tag_name: undefined
|
||||
input_tag_name: undefined,
|
||||
input_target_commitish: undefined
|
||||
})
|
||||
);
|
||||
});
|
||||
|
@ -54,7 +55,8 @@ describe("util", () => {
|
|||
input_prerelease: false,
|
||||
input_files: [],
|
||||
input_name: undefined,
|
||||
input_tag_name: undefined
|
||||
input_tag_name: undefined,
|
||||
input_target_commitish: undefined
|
||||
})
|
||||
);
|
||||
});
|
||||
|
@ -71,7 +73,8 @@ describe("util", () => {
|
|||
input_prerelease: false,
|
||||
input_files: [],
|
||||
input_name: undefined,
|
||||
input_tag_name: undefined
|
||||
input_tag_name: undefined,
|
||||
input_target_commitish: undefined
|
||||
})
|
||||
);
|
||||
});
|
||||
|
@ -89,7 +92,26 @@ describe("util", () => {
|
|||
input_files: [],
|
||||
input_name: undefined,
|
||||
input_tag_name: undefined,
|
||||
input_fail_on_unmatched_files: false
|
||||
input_fail_on_unmatched_files: false,
|
||||
input_target_commitish: undefined
|
||||
});
|
||||
});
|
||||
});
|
||||
describe("parseConfig", () => {
|
||||
it("parses basic config with commitish", () => {
|
||||
assert.deepStrictEqual(parseConfig({INPUT_TARGET_COMMITISH: "affa18ef97bc9db20076945705aba8c516139abd"}), {
|
||||
github_ref: "",
|
||||
github_repository: "",
|
||||
github_token: "",
|
||||
input_body: undefined,
|
||||
input_body_path: undefined,
|
||||
input_draft: false,
|
||||
input_prerelease: false,
|
||||
input_files: [],
|
||||
input_name: undefined,
|
||||
input_tag_name: undefined,
|
||||
input_fail_on_unmatched_files: false,
|
||||
input_target_commitish: "affa18ef97bc9db20076945705aba8c516139abd"
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue