mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-25 09:51:01 -05:00
The action won't try to publish assets if no token was specified
Fixes #2
This commit is contained in:
parent
eee3b8d067
commit
0eea0ed873
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ async function main() {
|
||||||
for (const target of PublisherTarget.getValues()) {
|
for (const target of PublisherTarget.getValues()) {
|
||||||
const targetName = PublisherTarget.toString(target);
|
const targetName = PublisherTarget.toString(target);
|
||||||
const publisherOptions = commonOptions[targetName.toLowerCase()];
|
const publisherOptions = commonOptions[targetName.toLowerCase()];
|
||||||
if (!publisherOptions) {
|
if (!publisherOptions?.token || typeof publisherOptions.token !== "string") {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue