Skip to content

Commit

Permalink
Update provider to 5.41.0 (#5)
Browse files Browse the repository at this point in the history
* feat(*): upgrade provider to 5.41.0

* chore(README)

* chore(clean)
  • Loading branch information
erikreinert authored Nov 4, 2023
1 parent 9ecf5be commit fac6f94
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 59 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/build.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/flake.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: flake

on:
pull_request:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix flake check
- run: nix build --json --no-link --print-build-logs
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ Terraform module which creates GitHub team resources.

| Name | Version |
|------|---------|
| <a name="requirement_github"></a> [github](#requirement\_github) | 5.37.0 |
| <a name="requirement_github"></a> [github](#requirement\_github) | 5.41.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_github"></a> [github](#provider\_github) | 5.37.0 |
| <a name="provider_github"></a> [github](#provider\_github) | 5.41.0 |

## Modules

Expand All @@ -22,8 +22,8 @@ No modules.

| Name | Type |
|------|------|
| [github_team.self](https://registry.terraform.io/providers/integrations/github/5.37.0/docs/resources/team) | resource |
| [github_team_membership.self](https://registry.terraform.io/providers/integrations/github/5.37.0/docs/resources/team_membership) | resource |
| [github_team.self](https://registry.terraform.io/providers/integrations/github/5.41.0/docs/resources/team) | resource |
| [github_team_membership.self](https://registry.terraform.io/providers/integrations/github/5.41.0/docs/resources/team_membership) | resource |

## Inputs

Expand Down
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

outputs = inputs@{ flake-parts, ... }:
outputs = inputs@{ flake-parts, nixpkgs, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];
perSystem = { config, self', inputs', pkgs, system, ... }:
Expand All @@ -12,12 +12,17 @@
homepage = "https://registry.terraform.io/providers/integrations/github";
owner = "integrations";
repo = "terraform-provider-github";
rev = "v5.37.0";
hash = "sha256-E53MbDM9ufQD0AnlIkdmNRcAlkGj+IACTwMPDUyNkqQ=";
rev = "v5.41.0";
hash = "sha256-fWxWcHy3TWFEpkU9uDSsHbUu+dnQKfvquN63eZH+Qf0=";
vendorHash = null;
};
in
{
_module.args.pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};

packages = {
terraform-with-plugins = pkgs.terraform.withPlugins (ps: [
terraform-github
Expand Down
19 changes: 12 additions & 7 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
terraform {
required_providers {
github = {
source = "integrations/github"
version = "5.37.0"
}
}
resource "github_team" "self" {
name = var.name
description = var.description
privacy = var.privacy
}

resource "github_team_membership" "self" {
for_each = var.members

role = each.value
team_id = github_team.self.id
username = each.key
}
8 changes: 8 additions & 0 deletions providers.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
terraform {
required_providers {
github = {
source = "integrations/github"
version = "5.41.0"
}
}
}
13 changes: 0 additions & 13 deletions team.tf

This file was deleted.

0 comments on commit fac6f94

Please sign in to comment.