Skip to content

Commit

Permalink
Исправляет поведение при сохранении
Browse files Browse the repository at this point in the history
  • Loading branch information
igsekor committed Jul 15, 2024
1 parent c7a6e86 commit 8fcfefa
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/scripts/update-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,19 @@ FORMATTED_DATE="$DAY $RUS_MONTH"

node .github/scripts/update-changelog.js "$FORMATTED_DATE"

git config --local user.email "<[email protected]>"
git config --local user.name "Doka Dog"
git add CHANGELOG.md
git commit -m "Обновляет CHANGELOG"
git push

if [[ -z $(git status -s) ]]
then
echo $(git status)
else
git config user.name "Doka Dog"
git config 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
2 changes: 2 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
update_changelog:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.DOKA_BOT_ACCESS_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down

0 comments on commit 8fcfefa

Please sign in to comment.