mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
just exit if no changes to commit
This commit is contained in:
10
.github/workflows/translation.yml
vendored
10
.github/workflows/translation.yml
vendored
@@ -30,9 +30,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config --global user.name "github-actions"
|
git config --global user.name "github-actions"
|
||||||
git config --global user.email "github-actions@github.com"
|
git config --global user.email "github-actions@github.com"
|
||||||
git add .
|
if [[ -n $(git status --porcelain) ]]; then
|
||||||
git commit -m "po/mo updates"
|
git add .
|
||||||
git push
|
git commit -m "po/mo updates"
|
||||||
|
git push
|
||||||
|
else
|
||||||
|
echo "No changes to commit."
|
||||||
|
fi
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user