Skip to content

Commit

Permalink
Create PR on default branch only
Browse files Browse the repository at this point in the history
  • Loading branch information
akunzai committed Feb 12, 2025
1 parent 4d63a53 commit 3dd2b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-owin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
echo "changes_detected=true" >> "$GITHUB_OUTPUT"
fi
- name: Create Pull Request
if: ${{ steps.check_for_changes.outputs.changes_detected == 'true' }}
if: ${{ github.ref_name == github.event.repository.default_branch && steps.check_for_changes.outputs.changes_detected == 'true' }}
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 3dd2b56

Please # to comment.