mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
save state
This commit is contained in:
parent
a9aae056f5
commit
7a4ae27496
2 changed files with 15 additions and 0 deletions
|
@ -27,6 +27,7 @@ try {
|
|||
function main(): void {
|
||||
if (!isPost()) {
|
||||
setup();
|
||||
setPost();
|
||||
} else {
|
||||
cleanup();
|
||||
}
|
||||
|
@ -40,6 +41,13 @@ function isPost(): boolean {
|
|||
return Boolean(core.getState("isPost"));
|
||||
}
|
||||
|
||||
/**
|
||||
* update post state
|
||||
*/
|
||||
function setPost(): void {
|
||||
core.saveState("isPost", "true");
|
||||
}
|
||||
|
||||
/**
|
||||
* setup function
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue