From e3d487b939f711d25f855c8d13d7d2bd378d3400 Mon Sep 17 00:00:00 2001 From: Ettore Foti <63098482+EttoreFoti@users.noreply.github.com> Date: Tue, 26 Mar 2024 00:06:42 +0100 Subject: [PATCH] chore(actions_runner_group): fix missing schema id (#2195) Co-authored-by: Keegan Campbell --- github/resource_github_actions_runner_group.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/github/resource_github_actions_runner_group.go b/github/resource_github_actions_runner_group.go index b1ca72974e..4100a50358 100644 --- a/github/resource_github_actions_runner_group.go +++ b/github/resource_github_actions_runner_group.go @@ -23,6 +23,11 @@ func resourceGithubActionsRunnerGroup() *schema.Resource { }, Schema: map[string]*schema.Schema{ + "id": { + Type: schema.TypeString, + Computed: true, + Description: "The ID of the runner group.", + }, "allows_public_repositories": { Type: schema.TypeBool, Optional: true, @@ -151,7 +156,8 @@ func resourceGithubActionsRunnerGroupCreate(d *schema.ResourceData, meta interfa if err = d.Set("default", runnerGroup.GetDefault()); err != nil { return err } - if err = d.Set("id", runnerGroup.GetID()); err != nil { + + if err = d.Set("id", strconv.FormatInt(runnerGroup.GetID(), 10)); err != nil { return err } if err = d.Set("inherited", runnerGroup.GetInherited()); err != nil { @@ -238,7 +244,7 @@ func resourceGithubActionsRunnerGroupRead(d *schema.ResourceData, meta interface if err = d.Set("default", runnerGroup.GetDefault()); err != nil { return err } - if err = d.Set("id", runnerGroup.GetID()); err != nil { + if err = d.Set("id", strconv.FormatInt(runnerGroup.GetID(), 10)); err != nil { return err } if err = d.Set("inherited", runnerGroup.GetInherited()); err != nil {