git-annex-mirror-action/README.md
Michael Hanke f094aac70b
All checks were successful
Run git-annex-ref-mirror tests / smoke-test (push) Successful in 34s
doc: add initial README
2026-09-25 12:44:08 +02:00

1 KiB
Raw Permalink Blame History

Forgejo Action for mirroring a git-annex repository

This action mirrors a bare git-annex repository to a remote by fetching branch refs, optionally pruning missing branches, force‑updating tags, and merging git‑annex metadata, all without transferring annexed file contents.

Usage

- name: Mirror git-annex repo
  uses: https://hub.datalad.org/git-annex/git-annex-mirror-action@v1

Parameters

The following optional parameters can be given via the with key. Example:

- name: Mirror annex repo
  uses: https://hub.datalad.org/git-annex/git-annex-mirror-action@v1
  with:
    repo: '.'
    remote: 'origin'
    prune: false
    force-tags: false
    quiet: false
Name Default Description
repo . Path to the bare git‑annex repository
remote origin Name of a configured remote to mirror
prune false Delete local branches absent from remote
force‑tags false Force‑update tags from remote
quiet false Suppress informational output

License

MIT