* The save process is best-effort, and it should not make the workflow fail * even though this process throws an error. * @param promise the promise to ignore error from * @returns Promise that will ignore error reported by the given promise
(promise: Promise<void>)
| 37 | * @returns Promise that will ignore error reported by the given promise |
| 38 | */ |
| 39 | async function ignoreError(promise: Promise<void>) { |
| 40 | return new Promise(resolve => { |
| 41 | promise |
| 42 | .catch(error => { |
| 43 | core.warning(error); |
| 44 | resolve(void 0); |
| 45 | }) |
| 46 | .then(resolve); |
| 47 | }); |
| 48 | } |
| 49 | |
| 50 | export async function run() { |
| 51 | await removePrivateKeyFromKeychain(); |