From 49f4cf671026b8e32f952c7e7f1482e090e1fe6d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 20:29:18 +0800 Subject: [PATCH] chore: templates generated by RadxaOS-SDK/rsdk@d5df3bd.dirty --- .github/workflows/update.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update.yaml b/.github/workflows/update.yaml index 56a64d5..eba8fdc 100644 --- a/.github/workflows/update.yaml +++ b/.github/workflows/update.yaml @@ -52,10 +52,12 @@ jobs: echo "pages=$(realpath ~/.aptly/public/rsdk-local/.)" >> $GITHUB_OUTPUT - git config --global user.name 'github-actions[bot]' - git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' - git add pkgs.json - git commit -m "chore: update package snapshot" + if git status --porcelain | grep --quiet "pkgs.json" ; then + git config --global user.name 'github-actions[bot]' + git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' + git add pkgs.json + git commit -m "chore: update package snapshot" + fi popd shell: "bash" - name: "Setup GitHub Pages"