mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2026-10-06 03:21:36 +00:00
feat: Add outputs.skipped
This commit is contained in:
1 parent
8019d941f3
commit
d38fb792ab
2 files changed
+4
-1
No files matched your search
@@ -66,3 +66,6 @@ inputs:
|
|||||||
cname:
|
cname:
|
||||||
description: 'Set custom domain'
|
description: 'Set custom domain'
|
||||||
required: false
|
required: false
|
||||||
|
outputs:
|
||||||
|
skipped:
|
||||||
|
description: 'This parameter has true when this action skipped deployment'
|
||||||
+1
-1
@@ -30,7 +30,7 @@ export async function run(): Promise<void> {
|
|||||||
core.warning(
|
core.warning(
|
||||||
'This action runs on a fork and not found auth token, Skip deployment'
|
'This action runs on a fork and not found auth token, Skip deployment'
|
||||||
);
|
);
|
||||||
core.setOutput('skip', 'true');
|
core.setOutput('skipped', 'true');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user