eubnara.github_enterprise.release (1.0.3) — module

This is a module to download assets from repository in github enterprise environment.

| "added in version" 1.0.0 of eubnara.github_enterprise"

Authors: Yubi Lee (@eubnara)

Install collection

Install with ansible-galaxy collection install eubnara.github_enterprise:==1.0.3


Add to requirements.yml

  collections:
    - name: eubnara.github_enterprise
      version: 1.0.3

Description

This is a module to download assets from repository in github enterprise environment. It allows you to choose latest release or release by tag and specify asset names to download.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Download all assets in latest release
  eubnara.github_enterprise.release:
    url: https://github.example.com
    owner: eub
    repo: something-magnificent
    token: token-hard-to-guess
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Specify output path
  eubnara.github_enterprise.release:
    url: https://github.example.com
    owner: eub
    repo: something-magnificent
    token: token-hard-to-guess
    output_path: output
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Specify asset names you want to get
  eubnara.github_enterprise.release:
    url: https://github.example.com
    owner: eub
    repo: something-magnificent
    token: token-hard-to-guess
    asset_names:
      - this-is-the-only-asset-to-download.tar.gz
      - second-one.zip

Inputs

    
tag:
    description: release tag
    required: false
    type: str

url:
    description: url to github enterprise server
    required: true
    type: str

repo:
    description: repo in github repository path
    required: true
    type: str

owner:
    description: owner in github repository path
    required: true
    type: str

token:
    description: github access token
    required: true
    type: str

asset_names:
    description: asset names to download
    required: false
    type: str

output_path:
    description: path to locate downloaded assets
    required: false
    type: str