Skip to content

Commit 9b93c37

Browse files
feat: add ability to skip i18n processing when commit message contains skip i18n (#249)
Co-authored-by: Replexica <support@replexica.com>
1 parent f71e514 commit 9b93c37

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

action/entrypoint.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ create_or_update_pr() {
101101
fi
102102
}
103103

104+
check_skip_i18n() {
105+
local commit_message="$REPLEXICA_COMMIT_MESSAGE"
106+
107+
if [[ "$commit_message" =~ \[\ *[sS][kK][iI][pP]\ +[iI]18[nN]\ *\] ]]; then
108+
echo "::notice::i18n processing has been skipped due to '[skip i18n]' found in the commit message."
109+
exit 0
110+
fi
111+
}
112+
104113
# Main execution
105114
main() {
106115
# Configure git for committing changes
@@ -113,6 +122,9 @@ main() {
113122
fi
114123
fi
115124

125+
# Check commit message for skip i18n
126+
check_skip_i18n
127+
116128
# Run Replexica to update translations
117129
run_replexica
118130

0 commit comments

Comments
 (0)