-
Notifications
You must be signed in to change notification settings - Fork 639
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,24 @@ if [ -s added-content.txt ]; then | |
FORMATTED_DATE="$DAY $RUS_MONTH" | ||
|
||
node .github/scripts/update-changelog.js "$FORMATTED_DATE" | ||
|
||
rm -f added-content.txt | ||
|
||
if [[ -z $(git status -s) ]] | ||
then | ||
echo $(git status) | ||
else | ||
git config --global user.name "Doka Dog" | ||
git config --global user.email "<[email protected]>" | ||
|
||
git add CHANGELOG.md | ||
git commit -m "Обновляет CHANGELOG" --author "Doka Dog <[email protected]>" | ||
|
||
git pull --rebase | ||
git push origin main | ||
|
||
exit | ||
fi | ||
else | ||
echo "Новых материалов не было в предыдущем коммите" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,20 +25,3 @@ jobs: | |
node-version: 20 | ||
- name: Ищет новые материалы и обновляет CHANGELOG | ||
run: sh .github/scripts/update-changelog.sh | ||
- name: Создание коммита с обновлениями полей | ||
run: | | ||
if [[ -z $(git status -s) ]] | ||
then | ||
echo $(git status) | ||
else | ||
git config --global user.name "Doka Dog" | ||
git config --global user.email "<[email protected]>" | ||
git add CHANGELOG.md | ||
git commit -m "Обновляет CHANGELOG" --author "Doka Dog <[email protected]>" | ||
git pull --rebase | ||
git push origin main | ||
exit | ||
fi |