Skip to content

Commit on Git Repository

Takes a tarball and pushes the unpacked contents to a git repository.

Configuration

OptionDescription
archiveRegex to match a .tgz file in artifacts (must match exactly one)
repositoryUrlGit remote URL (must use http or https, not git@...)
branchTarget branch
stripComponentsLeading path elements to remove when unpacking. Default: 0
createTagCreate a tag with the release version. Default: false

Environment Variables

NameDescription
GITHUB_API_TOKENGitHub PAT for authentication (when host is github.com)

Example

targets:
- name: commit-on-git-repository
archive: /^sentry-deno-\d.*\.tgz$/
repositoryUrl: https://github.com/getsentry/sentry-deno
stripComponents: 1
branch: main
createTag: true

Notes

  • The repository URL must use HTTP or HTTPS protocol
  • For GitHub repos, authentication uses GITHUB_API_TOKEN