Skip to content

Commit

Permalink
fix bash script syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
nlebovits committed Oct 2, 2024
1 parent 6acb9f4 commit a1eef05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/weekly-pr-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1eef05

Please sign in to comment.