mirror of
https://github.com/redhat-actions/podman-login.git
synced 2025-06-08 02:29:03 +00:00
Add example workflow
Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
565d575198
commit
1b6468c894
10 changed files with 68 additions and 196 deletions
17
src/state-helper.ts
Normal file
17
src/state-helper.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
import * as core from '@actions/core';
|
||||
|
||||
export const IsPost = !!process.env['STATE_isPost'];
|
||||
// export const registry = process.env['STATE_registry'] || '';
|
||||
export const logout = /true/i.test(process.env['STATE_logout'] || '');
|
||||
|
||||
// export function setRegistry(registry: string) {
|
||||
// core.saveState('registry', registry);
|
||||
// }
|
||||
|
||||
export function setLogout(logout: string) {
|
||||
core.saveState('logout', logout);
|
||||
}
|
||||
|
||||
if (!IsPost) {
|
||||
core.saveState('isPost', 'true');
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue