Skip to content

Extension "GitHub"

Simple extension to clone or update a given repository into a directory on your server.

Configuration

You can use /extension enable <GitHub> to enable the extension. This will add an entry in your nodes.yaml like so:

# config/nodes.yaml
MyNode:
  # [...]
  instances:
    DCS.dcs_serverrelease:
      # [...]
      extensions:
        GitHub:
          repo: 'https://github.com/mrSkortch/MissionScriptingTools.git'
          branch: master  # optional branch, default is the repositories default branch (e. g. main or master)
          target: '{server.instance.home}\Missions\Scripts'
          filter: '*.lua'


Configuration reference

Key Type Description Example
enabled bool Whether the GitHub clone and update extension is enabled. true
repo url (required) URL of the Git repository to clone or update. https://github.com/mrSkortch/MissionScriptingTools.git
target str (required) Directory on the server the repository is cloned into. (range: min 1) {server.instance.home}\Missions\Scripts
filter str Optional glob pattern of files to sparse-checkout from the repo. (range: min 1) *.lua