Commit 6bfab2aa authored by chenhe's avatar chenhe

fix

parent 6f998a91
...@@ -60,8 +60,6 @@ jobs: ...@@ -60,8 +60,6 @@ jobs:
fi fi
done done
git config user.name github-actions
git config user.email github-actions@github.com
git add --all git add --all
GIT_STATUS=$(git status --porcelain) GIT_STATUS=$(git status --porcelain)
...@@ -70,6 +68,9 @@ jobs: ...@@ -70,6 +68,9 @@ jobs:
if [ -z "$GIT_STATUS" ]; then if [ -z "$GIT_STATUS" ]; then
echo "Nothing to commit, skipping push" echo "Nothing to commit, skipping push"
else else
git config user.name github-actions
git config user.email github-actions@github.com
git commit -m "Sync how-to markdown files from PR #${{ github.event.pull_request.number }} on main repo" git commit -m "Sync how-to markdown files from PR #${{ github.event.pull_request.number }} on main repo"
echo "Pushing files to $TARGET_BRANCH branch of $TARGET_REPO" echo "Pushing files to $TARGET_BRANCH branch of $TARGET_REPO"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment