Skip to content

Commit e3d487b

Browse files
chore(actions_runner_group): fix missing schema id (#2195)
Co-authored-by: Keegan Campbell <[email protected]>
1 parent 0ff85ac commit e3d487b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

github/resource_github_actions_runner_group.go

+8-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ func resourceGithubActionsRunnerGroup() *schema.Resource {
2323
},
2424

2525
Schema: map[string]*schema.Schema{
26+
"id": {
27+
Type: schema.TypeString,
28+
Computed: true,
29+
Description: "The ID of the runner group.",
30+
},
2631
"allows_public_repositories": {
2732
Type: schema.TypeBool,
2833
Optional: true,
@@ -151,7 +156,8 @@ func resourceGithubActionsRunnerGroupCreate(d *schema.ResourceData, meta interfa
151156
if err = d.Set("default", runnerGroup.GetDefault()); err != nil {
152157
return err
153158
}
154-
if err = d.Set("id", runnerGroup.GetID()); err != nil {
159+
160+
if err = d.Set("id", strconv.FormatInt(runnerGroup.GetID(), 10)); err != nil {
155161
return err
156162
}
157163
if err = d.Set("inherited", runnerGroup.GetInherited()); err != nil {
@@ -238,7 +244,7 @@ func resourceGithubActionsRunnerGroupRead(d *schema.ResourceData, meta interface
238244
if err = d.Set("default", runnerGroup.GetDefault()); err != nil {
239245
return err
240246
}
241-
if err = d.Set("id", runnerGroup.GetID()); err != nil {
247+
if err = d.Set("id", strconv.FormatInt(runnerGroup.GetID(), 10)); err != nil {
242248
return err
243249
}
244250
if err = d.Set("inherited", runnerGroup.GetInherited()); err != nil {

0 commit comments

Comments
 (0)