A git library for GitHub Actions.
This library extracts the git command internals of actions/checkout into a module. It has then been extended with additional git commands.
npm install @peter-evans/actions-git
import * as actionsGit from '@peter-evans/actions-git'
const workingDirectory = '.'
const lfs = false
const git = await actionsGit.createGitCommandManager(workingDirectory, lfs)
await git.fetch('my-branch')