Module continuous_delivery_scripts.plugins.github_actions
Plugin for CI projects.
Classes
class GitHubActions-
Expand source code
class GitHubActions(CI): """Specific actions for a GitHub Action project.""" def package_software(self, mode: CommitType, version: str) -> None: """No operation.""" super().package_software(mode, version) _call_github_cli_check() def get_related_language(self) -> str: """Gets the related language.""" return get_language_from_file_name(__file__) def release_package_to_repository(self, mode: CommitType, version: str) -> None: """No operation.""" super().release_package_to_repository(mode, version) is_latest = mode == CommitType.RELEASE is_prerelease = mode == CommitType.BETA self._call_github_cli_release(version, is_latest, is_prerelease) def _call_github_cli_release(self, version: str, is_latest: bool, is_prerelease: bool) -> None: """Calls github cli to create a release.""" tag = self.get_version_tag(version) logger.info(f"Create a GitHub Release {version}") changelogPath = configuration.get_value(ConfigurationVariable.CHANGELOG_FILE_PATH) env = os.environ env[ENVVAR_GITHUB_CLI_GIT_TOKEN] = configuration.get_value(ConfigurationVariable.GIT_TOKEN) check_call( _generate_github_cli_release_command_list(changelogPath, version, tag, is_latest, is_prerelease), env=env )Specific actions for a GitHub Action project.
Ancestors
- CI
- BaseLanguage
- abc.ABC
Methods
def package_software(self,
mode: CommitType,
version: str) ‑> None-
Expand source code
def package_software(self, mode: CommitType, version: str) -> None: """No operation.""" super().package_software(mode, version) _call_github_cli_check()No operation.
Inherited members
CI:can_add_licence_headerscan_get_project_metadatacheck_credentialsgenerate_code_documentationgenerate_source_licence_header_templateget_current_spdx_projectget_related_languageget_secret_registry_exclude_filesget_version_tagprepare_releaserelease_package_to_repositoryshould_clean_before_packagingshould_include_spdx_in_packagetag_release