Skip to content

Commit

Permalink
chore(actions_runner_group): fix missing schema id (#2195)
Browse files Browse the repository at this point in the history
Co-authored-by: Keegan Campbell <[email protected]>
  • Loading branch information
EttoreFoti and kfcampbell authored Mar 25, 2024
1 parent 0ff85ac commit e3d487b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions github/resource_github_actions_runner_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit e3d487b

Please sign in to comment.