Skip to content

Commit

Permalink
Merge branch 'trs/github-repo-topics-non-exhaustive'
Browse files Browse the repository at this point in the history
  • Loading branch information
tsibley committed May 24, 2024
2 parents ee146ac + 0dfaaca commit 63b7d05
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ Make those changes so:
> You'll need ambiently-configured AWS credentials with broad admin-level
> access to read (and optionally modify) resources in our account.
>
> You'll also need a `GITHUB_TOKEN` in the environment with the `actions:write`
> fine-grained token permission on our repos.
> You'll also need a `GITHUB_TOKEN` in the environment with the following
> fine-grained token permissions on our repos:
>
> Please step cautiously and be careful when using them!
> - `actions:write`
> - `administration:write`
>
> Please step cautiously and be careful when using these two sets of
> credentials!

## Documentation
Expand Down
9 changes: 7 additions & 2 deletions env/production/github-repos.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
resource "github_repository_topics" "nextstrain" {
data "github_repository" "pathogen" {
for_each = toset(flatten(values(local.pathogen_repos)))
name = each.key
}

resource "github_repository_topics" "pathogen" {
for_each = data.github_repository.pathogen
repository = each.key
topics = ["nextstrain", "pathogen"]
topics = toset(flatten([each.value.topics, "nextstrain", "pathogen"]))
}

0 comments on commit 63b7d05

Please sign in to comment.