From a1eef05311a12b51540bf2bcd1873f9e8f32053c Mon Sep 17 00:00:00 2001 From: nlebovits Date: Wed, 2 Oct 2024 13:15:18 -0400 Subject: [PATCH] fix bash script syntax error --- .github/workflows/weekly-pr-to-main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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