diff --git a/.github/workflows/fledge.yaml b/.github/workflows/fledge.yaml index 6c167c23..5b2131ae 100644 --- a/.github/workflows/fledge.yaml +++ b/.github/workflows/fledge.yaml @@ -104,10 +104,14 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - set -x - gh pr create --base main --head fledge --fill-first - gh workflow run rcc -f ref=$(git rev-parse HEAD) - gh pr merge --squash --auto + set -ex + if [ -n "$(git diff main --numstat)" ]; then + gh pr create --base main --head fledge --fill-first + gh workflow run rcc -f ref=$(git rev-parse HEAD) + gh pr merge --squash --auto + else + echo "No changes." + fi shell: bash - name: Check release