Modify action.yml

Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
divyansh42 2021-03-31 23:54:57 +05:30
parent 6c4ab503eb
commit 005af2ac0e
8 changed files with 23 additions and 27 deletions

View file

@ -46,7 +46,7 @@ async function run(): Promise<void> {
core.info(`✅ Successfully logged in to ${registry}`);
}
async function logout(): Promise<void> {
async function registryLogout(): Promise<void> {
if (!stateHelper.logout) {
return;
}
@ -57,5 +57,5 @@ if (!stateHelper.IsPost) {
run().catch(core.setFailed);
}
else {
logout().catch(core.setFailed);
registryLogout().catch(core.setFailed);
}