Skip to content

Action to add a commit to a PR #24945

Answered by SoftCreatR
SoftCreatR asked this question in Actions
Discussion options

You must be logged in to vote

I was able to make it work, using gh:

      - name: Checkout PR
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: gh pr checkout ${{ github.event.pull_request.number }}
  # other stuff

  - name: Push changes
    env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    run: git push

Maybe this helps someone.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@kimad-cincip
Comment options

@egor-ryashin
Comment options

@heyajulia
Comment options

@ShameGod
Comment options

@ShameGod
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment