@peter-evans/actions-git
v1.4.3
Published
A git library for GitHub Actions
Downloads
12
Readme
actions-git
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.
:warning: This library is intended to support my own GitHub actions. Updates may include breaking interface changes.
Usage
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')