1
0
Fork 0
mirror of https://github.com/docker/login-action.git synced 2025-03-31 12:10:05 +02:00

Allow use of this action in non-linux platforms with warning (fixes #47)

This commit is contained in:
The Hatsune Daishi 2021-04-06 09:14:08 +09:00 committed by GitHub
parent 4b206288bd
commit fa97036308
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ import * as stateHelper from './state-helper';
export async function run(): Promise<void> {
try {
if (os.platform() !== 'linux') {
throw new Error('Only supported on linux platform');
core.warning('This action is intented for linux platform. You may experience problems.');
}
const {registry, username, password, logout} = getInputs();