Giter Club home page Giter Club logo

Comments (7)

Ash258 avatar Ash258 commented on September 26, 2024

PR action is affected as well

from scoop-githubactions.

Ash258 avatar Ash258 commented on September 26, 2024

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}:[email protected]`n"

Still nothing. I cannot make it work with some git hacks.

from scoop-githubactions.

Ash258 avatar Ash258 commented on September 26, 2024

🤔

git push "https://$GITHUB_ACTOR:[email protected]/$GITHUB_REPOSITORY.git" "HEAD:$GITHUB_REF"

Something like $user = ($env:GITHUB_REPOSITORY -split '/')[0]; git remote set-url origin "https://${user}:$env:[email protected]/$env:GITHUB_REPOSITORY.git"

This could potentially work, but could be broken on protected branches.

from scoop-githubactions.

Ash258 avatar Ash258 commented on September 26, 2024

Nice. Pushing is now possible for excavator and PR creation on hash fails.

https://github.com/Ash258/GithubActionsBucketForTesting/commit/e377953ba5552613b185ca3d77b5321c682f3a77/checks#step:4:99

TEST protected branch pushes

from scoop-githubactions.

Ash258 avatar Ash258 commented on September 26, 2024

As I thought https://github.com/Ash258/GithubActionsBucketForTesting/runs/199161544#step:4:93

from scoop-githubactions.

Ash258 avatar Ash258 commented on September 26, 2024

https://github.community/t5/How-to-use-Git-and-GitHub/How-to-push-to-protected-branches-in-a-GitHub-Action/m-p/29609

from scoop-githubactions.

Ash258 avatar Ash258 commented on September 26, 2024

Push problem was resolved. Protected branches are not supported intentionally.

https://github.community/t5/GitHub-Actions/How-to-push-to-protected-branches-in-a-GitHub-Action/m-p/30710/highlight/true#M526

from scoop-githubactions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.