Skip to content

Commit

Permalink
fix deprecated syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
nlebovits committed Oct 2, 2024
1 parent a1eef05 commit 1d28889
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/weekly-pr-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,21 @@ jobs:
git config user.email "[email protected]"
- name: Check if staging is ahead of main
id: check_diff
id: check_diff # Fix indentation here
run: |
git fetch origin main
git fetch origin staging
if [ $(git rev-list --count main..staging) -gt 0 ]; then
echo "staging is ahead"
echo "::set-output name=staging_ahead::true"
echo "staging_ahead=true" >> $GITHUB_OUTPUT
else
echo "staging is not ahead"
echo "::set-output name=staging_ahead::false"
fi
echo "staging_ahead=false" >> $GITHUB_OUTPUT
shell: bash

- name: Open PR if staging is ahead
if: steps.check_diff.outputs.staging_ahead == 'true'
uses: peter-evans/create-pull-request@v7
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
base: main
Expand Down

0 comments on commit 1d28889

Please sign in to comment.