levonet.ci_github_rm_branch

CI: GitHubリポジトリからブランチを削除する

この役割は、プルリクエストがマージされた後のCIパイプラインで役立ちます。

変数

  • ci_github_api (デフォルト: https://api.github.com)
  • ci_github_username (必須): GitHubのユーザー名。
  • ci_github_password (必須): GitHubアクセストークン
  • ci_github_owner (必須): GitHubの所有者または組織名。
  • ci_github_repo (必須): GitHubプロジェクトリポジトリ名。
  • ci_github_ref (必須): GitHubの参照名。
  • ci_github_ignore_error (デフォルト: yes): エラーを無視するかどうか。

例プレイブック

- hosts: 127.0.0.1
  connection: local
  gather_facts: no
  vars:
    ci_github_username: ci-bot
    ci_github_password: secret
    ci_github_owner: myorg
    ci_github_repo: myapp
    ci_github_ref: "heads/{{ github_branch }}"
  roles:
    - role: levonet.ci_github_rm_branch

Jenkinsで実行するには:

ansible-playbook myplaybook.yml -e github_branch="${X_GH_BRANCH}"

ライセンス

MIT

著者情報

この役割は、パヴロ・バシンスキーによって作成されました。

プロジェクトについて

Remove branch from github repository.

インストール
ansible-galaxy install levonet.ci_github_rm_branch
ライセンス
mit
ダウンロード
16.7k
所有者