fix event created branch

This commit is contained in:
Ing 2024-04-25 13:39:56 +08:00
parent bc2c10657f
commit 9083170bf0

View File

@ -85,6 +85,7 @@ jobs:
if: success() && (inputs.push == true || github.event.action == 'created') if: success() && (inputs.push == true || github.event.action == 'created')
run: | run: |
echo "Git push ..." echo "Git push ..."
git checkout main
git pull git pull
status=$(git status -s | grep -E "docs" | awk '{printf " %s", $2}') status=$(git status -s | grep -E "docs" | awk '{printf " %s", $2}')
if [ -n "${status}" ]; then if [ -n "${status}" ]; then