diff --git a/.github/workflows/shell-quality-checks.yml b/.github/workflows/shell-quality-checks.yml index 5eed9d9..7ce54d5 100644 --- a/.github/workflows/shell-quality-checks.yml +++ b/.github/workflows/shell-quality-checks.yml @@ -29,3 +29,17 @@ jobs: - name: Build Universal Binary for disk analyzer run: ./scripts/build-analyze.sh + + - name: Commit analyzer binary if updated + if: github.event_name != 'pull_request' + run: | + if git diff --quiet -- bin/analyze-go; then + echo "bin/analyze-go unchanged; nothing to commit." + exit 0 + fi + + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add bin/analyze-go + git commit -m "chore: update analyzer binary" + git push origin HEAD:${GITHUB_REF#refs/heads/} diff --git a/bin/analyze-go b/bin/analyze-go index cd3e12b..edf5138 100755 Binary files a/bin/analyze-go and b/bin/analyze-go differ