Possibly fix source path for crowdin-upload workflow, change to Path instead of File

This commit is contained in:
Vankka 2023-07-19 19:05:43 +03:00
parent 38bc550175
commit 0d6158a49f
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0
2 changed files with 2 additions and 3 deletions

View File

@ -27,7 +27,7 @@ jobs:
upload_sources: true
upload_translations: false
download_translations: false
source: "source.yaml"
source: "i18n/source.yaml"
translation: "/%original_path%/src/main/resources/translations/%three_letters_code%.yaml"
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

View File

@ -32,7 +32,6 @@ import org.spongepowered.configurate.objectmapping.meta.Processor;
import org.spongepowered.configurate.serialize.SerializationException;
import org.spongepowered.configurate.yaml.YamlConfigurationLoader;
import java.io.File;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
@ -104,7 +103,7 @@ public final class DiscordSRVTranslation {
}
YamlConfigurationLoader.builder()
.file(new File("i18n", "source.yaml"))
.path(Paths.get("i18n", "source.yaml"))
.build()
.save(node);
}