community / community.general / 0.1.4 / module / github_release Interact with GitHub Releases Authors: Adrian Moisey (@adrianmoisey)community.general.github_release (0.1.4) — module
Install with ansible-galaxy collection install community.general:==0.1.4
collections: - name: community.general version: 0.1.4
Fetch metadata about GitHub Releases
- name: Get latest release of a public repository github_release: user: ansible repo: ansible action: latest_release
- name: Get latest release of testuseer/testrepo github_release: token: tokenabc1234567890 user: testuser repo: testrepo action: latest_release
- name: Get latest release of test repo using username and password. Ansible 2.4. github_release: user: testuser password: secret123 repo: testrepo action: latest_release
- name: Create a new release github_release: token: tokenabc1234567890 user: testuser repo: testrepo action: create_release tag: test target: master name: My Release body: Some description
tag: description: - Tag name when creating a release. Required when using action is set to C(create_release). body: description: - Description of the release when creating a release name: description: - Name of release when creating a release repo: description: - Repository name required: true user: description: - The GitHub account that owns the repository required: true draft: default: 'no' description: - Sets if the release is a draft or not. (boolean) type: bool token: description: - GitHub Personal Access Token for authenticating. Mutually exclusive with C(password). action: choices: - latest_release - create_release description: - Action to perform required: true target: description: - Target of release when creating a release password: description: - The GitHub account password for the user. Mutually exclusive with C(token). prerelease: default: 'no' description: - Sets if the release is a prerelease or not. (boolean) type: bool
create_release: description: - Version of the created release - For Ansible version 2.5 and later, if specified release version already exists, then State is unchanged - For Ansible versions prior to 2.5, if specified release version already exists, then State is skipped returned: success sample: 1.1.0 type: str latest_release: description: Version of the latest release returned: success sample: 1.1.0 type: str