Skip to content

Commit 8840b13

Browse files
author
hCaptcha GHA
committed
Add git hooks setup.
1 parent 728cf8e commit 8840b13

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/scripts/update-changelog.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ git config --global user.name "hCaptcha GHA"
3737
# Add, commit, and push changes
3838
git add changelog.txt
3939
git commit -m "Update changelog from readme.txt"
40-
git push
4140

42-
echo "Changelog successfully updated and pushed to the repository."
41+
# Check if running in CI environment
42+
if [ -n "$CI" ]; then
43+
# Push changes if in CI environment
44+
git push
45+
echo "Changelog successfully updated and pushed to the repository."
46+
else
47+
echo "Changelog updated locally. Skipping push."
48+
fi

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,7 @@ Instructions for popular native integrations are below:
631631
* Fixed processing wpDiscuz comment form with wpDiscuz custom ajax.
632632
* Test record.
633633
* Test record 2.
634+
* Test record 3.
634635

635636
= 4.10.0 =
636637
* Added support for wp_login_form() function and LoginOut block.

0 commit comments

Comments
 (0)