Comments (4)
I have faced with the same issue in different context and just want to share my findings and solution, may be it will be useful for someone:
When workflow is triggered by release
event, step - uses: actions/checkout@v2
will check out tag instead of branch and create-pull-request
step will fail with the fatal: ref HEAD is not a symbolic ref
error.
The solution is pretty simple:
- uses: actions/checkout@v2
with:
ref: 'master'
from create-pull-request.
Thanks @peter-evans , apologies for not checking that before. Will try it out and, if necessary, mention you again.
from create-pull-request.
@maxim-lobanov I just wanted to let you know that I've just added support for events which checkout a commit, not a branch, provided the base
input is supplied.
I've released v3.2.0
with support for this. Please see events which checkout a commit
Basically this means that for the release
event you can make changes directly on top of the tag commit. The action will then rebase them onto the branch supplied by the base
input.
on:
release:
types: [published]
jobs:
published:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v2
# Make changes to pull request here
- uses: peter-evans/create-pull-request@v3
with:
base: master
from create-pull-request.
Hi @topikito
Please see this short guide for updating from v1 to v2.
Most likely the problem is due to your workflow using actions/checkout@v1
. Please upgrade to actions/checkout@v2
. If that doesn't solve the issue, please post your workflow so I can see how you are checking out and making changes to pull request.
from create-pull-request.
Related Issues (20)
- Author Ignored when Token Specified HOT 1
- Action fetches working branch from target remote and results in couldn't find remote ref HOT 3
- Unable to create pull request across repositories HOT 2
- Branch 'create-pull-request/patch' no longer differs from base branch 'staging' HOT 2
- Error when running this action from an EC2 hosted runner HOT 1
- How to create a fashion website HOT 1
- PR between compare branch and base branch HOT 1
- The action behavior differently HOT 1
- Resets changes in the branch with main HOT 2
- Git config seems to be empty - Please tell me who you are. HOT 4
- feature request: add output to signal if a pr is actually created HOT 1
- Unable to create new PR from old branch HOT 1
- unable to create pull request due to cherry-picker error HOT 1
- Pass parameters to commit
- Request: Document PAT permissions requirements for machine accounts HOT 2
- `push-to-fork` won't push to sibling repos in the same network HOT 3
- add a no-verify option HOT 1
- Support commenting on a PR when closing it HOT 4
- PR is geeting auto merge HOT 1
- Commit author is `web-flow`? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-pull-request.