diff --git a/.github/workflows/version-check.yml b/.github/workflows/version-check.yml index 781ab8f6..0cb9a19d 100644 --- a/.github/workflows/version-check.yml +++ b/.github/workflows/version-check.yml @@ -38,9 +38,9 @@ jobs: - name: Diff Check id: diff-check run: | - git diff HEAD control-branch --name-only - if [ $? -eq 1 ]; then - echo "changes_detected=true" >> "$GITHUB_OUTPUT" + git diff main control-branch --name-only + if [[ $(git diff main control-branch --name-only) ]]; then + echo "changes_detected=true" >> "$GITHUB_ENV" fi - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v5