mirror of
https://github.com/docker/build-push-action.git
synced 2025-07-06 09:10:50 +00:00
Merge pull request #70 from useblacksmith/cleanup-failure
src: ignore error when theres nothing mounted
This commit is contained in:
commit
23eae444a4
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@ -397,7 +397,10 @@ actionsToolkit.run(
|
|||||||
core.info('Unmounted device');
|
core.info('Unmounted device');
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.warning(`Error during cleanup: ${error.message}`);
|
// Only log warning if error is not from grep finding no mounts
|
||||||
|
if (!error.message.includes('exit code 1')) {
|
||||||
|
core.warning(`Error during cleanup: ${error.message}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.warning(`Error during final cleanup: ${error.message}`);
|
core.warning(`Error during final cleanup: ${error.message}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user