Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@
- name: Ensure required labels exists on remote # noqa no-handler
ansible.builtin.include_tasks: "tasks/add_label.yml"
with_items:
- stackhpc-ci
- automated
- community-files
loop_control:
loop_var: label_name
when: community_copy.changed | bool

- name: Open pull request # noqa command-instead-of-shell no-handler
ansible.builtin.shell:
cmd: 'gh pr create -f -B {{ community_manifest.prefix | default("") }}{{ community_manifest.branch }} -l stackhpc-ci --label community-files'
cmd: 'gh pr create -f -B {{ community_manifest.prefix | default("") }}{{ community_manifest.branch }} -l automated --label community-files'
chdir: "{{ staging_path }}/{{ repository_manifest.name }}"
when: community_copy.changed | bool

Expand Down
8 changes: 4 additions & 4 deletions terraform/github/repositories.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ resource "github_repository" "repositories" {
}
}

resource "github_issue_label" "stackhpc_ci_label" {
resource "github_issue_label" "automated_label" {
for_each = toset(flatten(values(var.repositories)))
repository = each.value
name = "stackhpc-ci"
color = "E6E2C0"
description = "Automated action performed by stackhpc-ci"
name = "automated"
color = "C4F2A5"
description = "Automated action performed by GitHub Actions"
}

resource "github_issue_label" "workflows_label" {
Expand Down