diff --git a/.github/workflows/small.yml b/.github/workflows/small.yml index 96e2144..fb1e88d 100644 --- a/.github/workflows/small.yml +++ b/.github/workflows/small.yml @@ -52,8 +52,7 @@ jobs: [ -e $GITHUB_WORKSPACE/LICENSE ] && cp $GITHUB_WORKSPACE/LICENSE $GITHUB_WORKSPACE/${{matrix.target}} [ -e $GITHUB_WORKSPACE/README.md ] && cp $GITHUB_WORKSPACE/README.md $GITHUB_WORKSPACE/${{matrix.target}} cd $GITHUB_WORKSPACE/${{matrix.target}} - git add . - git commit -am "update $(date +%Y-%m-%d" "%H:%M:%S)" + git diff --exit-code || git commit -am "update $(date +%Y-%m-%d" "%H:%M:%S)" git push --force "https://${{ secrets.ACCESS_TOKEN }}@github.com/kenzok8/small.git" HEAD:${{matrix.target}} - name: Delete workflow runs