Categorygithub.com/bitsbeats/drone-git-update-fork
modulepackage
0.2.1
Repository: https://github.com/bitsbeats/drone-git-update-fork.git
Documentation: pkg.go.dev

# README

drone-git-update-fork

Build Status Gitter chat Join the discussion at https://discourse.drone.io Drone questions at https://stackoverflow.com Go Report

Drone plugin to update a remote git repository, e.g. a fork.

Build

go build .

Run

PLUGIN_DESTREPO=https://github.com/foobar/destination-repo.git PLUGIN_TOKEN=<github token> DRONE_BRANCH=master drone-git-update-fork

Example drone step

---
name: default
kind: pipeline

steps:

  - name: update git fork
    image: bitsbeats/drone-git-update-fork
    settings:
      destrepo: https://github.com/foobar/destination-repo.git
      token:
        from_secret: github_token
      force: true

# Structs

Config holds the runtime configuration.
DroneEnv environment variables.