Skip to content

Push to GitHub

Actions
Push entire directory to another GitHub repository
0.0.4
Latest
Star (4)

Push to GitHub

GitHub action to push directory to another GitHub repository

Usage

You need to provide the target repository's private key as a secret.

Using GITHUB_SSH_KEY

  • Create an SSH key-pair on your machine
  • Add the public key to your target repository as a deploy key with write access
  • Add the private key to your source repository as a secret (for example MY_GITHUB_PRIVATE_SSH_KEY)
uses: markjivko/push-to-github@main
env:
  GITHUB_SSH_KEY: ${{ secrets.MY_GITHUB_PRIVATE_SSH_KEY }}
with:
  source-directory: "out"
  target-github-username: "my-user"
  target-github-repository: "my-repo"
  target-github-branch: "main"
  commit-email: "[email protected]"
  commit-name: "John Doe"
  commit-message: ${{ github.event.head_commit.message }}

Push to GitHub is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Push entire directory to another GitHub repository
0.0.4
Latest

Push to GitHub is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.