Open fatbasstard opened 1 month ago
Reverted, output from 6.1.0:
/usr/bin/git symbolic-ref HEAD --short
staging
Working base is branch 'staging'
/usr/bin/git checkout --progress -B 1e85ea96-86ff-4bb2-8710-7d0e8b720737 HEAD --
Switched to a new branch '1e85ea96-86ff-4bb2-8710-7d0e8b720737'
/usr/bin/git status --porcelain -unormal --
/usr/bin/git diff --quiet --
/usr/bin/git diff --quiet --staged --
/usr/bin/git stash push --include-untracked
No local changes to save
Resetting working base branch 'staging'
/usr/bin/git checkout --progress staging --
Switched to branch 'staging'
Your branch and 'origin/staging' have diverged,
and have 8390 and 1 different commits each, respectively.
(use "git pull" if you want to integrate the remote branch with yours)
/usr/bin/git reset --hard origin/staging
HEAD is now at 9ddb1d2a Merge pull request #4926 from xxx/develop
/usr/bin/git rev-list --right-only --count staging...1e85ea96-86ff-4bb2-8710-7d0e8b720737
8391
/usr/bin/git -c protocol.version=2 fetch --no-tags --progress --no-recurse-submodules --force --depth=8401 origin develop:refs/remotes/origin/develop
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
Pull request branch 'develop' already exists as remote branch 'origin/develop'
/usr/bin/git checkout --progress develop --
Switched to branch 'develop'
/usr/bin/git rev-list --right-only --count staging...develop
8391
/usr/bin/git diff --quiet develop..1e85ea96-86ff-4bb2-8710-7d0e8b720737
/usr/bin/git rev-list --right-only --count origin/develop...develop
0
/usr/bin/git rev-list --left-only --count origin/develop...develop
0
Branch 'develop' is even with its remote and will not be updated
/usr/bin/git rev-list --right-only --count staging...develop
8391
/usr/bin/git rev-parse HEAD
8dbc75970dd07e073ccb96f3fe709dfa5da76831
/usr/bin/git branch --delete --force 1e85ea96-86ff-4bb2-8710-7d0e8b720737
Deleted branch 1e85ea96-86ff-4bb2-8710-7d0e8b720737 (was 8dbc7597).
/usr/bin/git checkout --progress staging --
Switched to branch 'staging'
Your branch is up to date with 'origin/staging'.
Create or update the pull request
Attempting creation of pull request
A pull request already exists for xxx:develop
Fetching existing pull request
Attempting update of pull request
Updated pull request #4929 (xxx:develop => staging)
Setting outputs
Restore git configuration
Can confirm this happened to me as well when migrating between the same versions - 6.1.0
to 7.0.0
. The only difference between my workflow config and @fatbasstard's above is I don't have a token
specified; they're otherwise identical. Had to roll back to 6.1.0.
Thank you for reporting this. I've released a fix for this in v7.0.1
/ v7
.
https://github.com/peter-evans/create-pull-request/releases/tag/v7.0.1
I'm going to keep this issue open for now because the "fix" is more of a workaround, and I would like to try and reproduce this error so I can solve it in a more satisfactory way.
Thanks @peter-evans,
Will try it out ❤️
Functionality works as expected again with 7.0.1
Thanks for the quick fix!
Hi,
We've updated to V7 and now getting an (unexpected) error. Checked the "what's new" and changes and it didn't mention anything that could impact, but it did.
Error
Configuration
In short, we have bunch or repositories which have a DTAP setup (develop->staging->main) where we use branch promotion to push changes to main. So simplify this process we use this action to automatically create a
Sync to staging
PR with changes from the develop branch.Works like a charm with
6.1.0
, breaks in7.0