Compare commits

...
Author SHA1 Message Date
apion 5363c17919 Test #8 2024-11-02 22:24:26 -04:00
apion daa331a30d Test #7 2024-11-02 22:21:21 -04:00
apion 9e3edd4f1c Test #6 2024-11-02 22:19:50 -04:00
apion 1ef069b08e Test #5 2024-11-02 22:18:45 -04:00
apion b558d04a58 Test #4 2024-11-02 22:17:50 -04:00
apion 96142387c5 Test #3 2024-11-02 22:15:37 -04:00
apion ccde9f79aa Test #2 2024-11-02 22:11:52 -04:00
apion b50762195e Added CI job for merging main into lang-updates when en_US is changed 2024-11-02 22:10:20 -04:00
2 changed files with 30 additions and 2 deletions
+29 -1
View File
@@ -1,9 +1,10 @@
image: amazoncorretto:21
image: amazoncorretto:21-alpine
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
stages:
- merge
- build
- deploy
@@ -64,3 +65,30 @@ deploy:
- ./*.jar
# - neoforge/build/libs/*+*.jar
# - fabric/build/libs/*+*.jar
merge_on_lang_change:
stage: merge
script:
# Check for changes in the specified file or directory
- |
apk add git
if git diff --name-only "$CI_COMMIT_BEFORE_SHA" "$CI_COMMIT_SHA" | grep -q "common/src/main/resources/assets/cobblemon/lang/en_us.json"; then
echo "US locale changed! Updating lang branch..."
# Configure Git user for the merge commit
git config --global user.email "noreply@weblate.org"
git config --global user.name "Weblate"
git remote set-url origin https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/cable-mc/cobblemon.git
# Fetch the target branch and merge main into it
git fetch origin lang-updates
git checkout lang-updates
git merge origin/ci-test
# Push the merged branch back to the repository
git push origin lang-updates:lang-updates-test
else
echo "No need to update lang"
fi
only:
- ci-test
@@ -6527,5 +6527,5 @@
"cobblemon.ability.zenmode": "Zen Mode",
"cobblemon.ability.zenmode.desc": "Changes the Pokémon's shape when HP is half or less.",
"cobblemon.ability.zerotohero": "Zero to Hero",
"cobblemon.ability.zerotohero.desc": "The Pokémon transforms into its Hero Form when it switches out."
"cobblemon.ability.zerotohero.desc": "The Pokémon transforms into its Hero Form when it switches out. TEST AGAIN AGAIN AGAIN AGAIN AGAIN AGAIN AGAIN"
}