diff --git a/.github/workflows/weekly-pr-to-main.yml b/.github/workflows/weekly-pr-to-main.yml index 53a2370e..3abfa32d 100644 --- a/.github/workflows/weekly-pr-to-main.yml +++ b/.github/workflows/weekly-pr-to-main.yml @@ -27,10 +27,13 @@ jobs: run: | git fetch origin main git fetch origin staging - if git rev-list --count main..staging > 0; then + if [ $(git rev-list --count main..staging) -gt 0 ]; then + echo "staging is ahead" echo "::set-output name=staging_ahead::true" else + echo "staging is not ahead" echo "::set-output name=staging_ahead::false" + fi shell: bash - name: Open PR if staging is ahead