-
-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR creation while checking out from tag #2821
Comments
The reason this isn't working is not the message you see in the logs about detached HEAD, it's this line here: Please follow this example: My understanding is that you want to update jobs:
productionPromotion:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- name: Reset main branch to match the specified tag
run: |
git fetch origin ${{ inputs.tag }}:${{ inputs.tag }}
git reset --hard ${{ inputs.tag }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
branch: "release/${{inputs.product}}-test-to-production" I've never tried to use this method with a tag before, so it will be interesting to hear if it works ok. |
add-paths doesn't seem to work as expected. It also add nuuday-ciam/test which doesn't match.
|
Subject of the issue:
I am trying to create a pull request from checking out to a tag. I have supplied input base as main. Nevertheless I am facing the error fatal: ref HEAD is not a symbolic ref.
Goal:
I have the required the changes in the tag. peter-evans/create-pull-request@v6 has to create a pull request for the new changes in the existing tag to main branch from the branch "release/${{inputs.product}}-test-to-production" to be created.
How to achieve this?
Steps to reproduce
Log
The text was updated successfully, but these errors were encountered: