Closed Morpheus636 closed 3 years ago
Hi @Morpheus636
It should be fixable by setting the base like this:
- name: Create Pull Request
if: steps.autopep8.outputs.exit-code == 2
uses: peter-evans/create-pull-request@v3
with:
commit-message: autopep8 action fixes
title: Fixes by autopep8 action
body: This is an auto-generated PR with fixes by autopep8.
labels: autopep8, automated pr
reviewers: peter-evans
branch: ${{ steps.vars.outputs.branch-name }}
+ base: ${{ github.head_ref }}
Thanks for your help!
I had the same issue. @peter-evans, do you know why this happens? I could not seem to reproduce the issue on my end.
My Workflow:
Error: When the repository is checked out on a commit instead of a branch, the 'base' input must be supplied.