Closed Ash258 closed 5 years ago
PR action is affected as well
9 days and GitHub support still not replied.
Maybe something like this could help 🤔
git config --global credential.helper store
Add-Content "$HOME\.git-credentials" "https://${env:GITHUB_TOKEN}:x-oauth-basic@github.com`n"
Still nothing. I cannot make it work with some git hacks.
🤔
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git" "HEAD:$GITHUB_REF"
Something like $user = ($env:GITHUB_REPOSITORY -split '/')[0]; git remote set-url origin "https://${user}:$env:GITHUB_TOKEN@github.com/$env:GITHUB_REPOSITORY.git"
This could potentially work, but could be broken on protected branches.
Nice. Pushing is now possible for excavator and PR creation on hash fails.
TEST protected branch pushes
Push problem was resolved. Protected branches are not supported intentionally.
In newer version of actions there is something wrong. It looks like that
git config --global user.name $env:GITHUB_ACTOR
will be needed now.