1342459b153576429382aed34ee5753f85bf3420

Author
Marc Cornellà <hello@mcornella.com>
Committer
Marc Cornellà <hello@mcornella.com>
Date

Message

ci: fix update of plugin or theme fields

See [1] for the reference of value field (ProjectV2FieldValue type),
and [2] for sample application code.

[1] https://docs.github.com/en/graphql/reference/input-objects#projectv2fieldvalue
[2] https://docs.github.com/en/enterprise-cloud@latest/issues/planning-and-tracking-with-projects/automating-your-project/automating-projects-using-actions#example-workflow-authenticating-with-a-github-app

Diff

 1diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml
 2index 1aa69c279a240b79d79f69ddfed8378e4ce29e9c..1d961d8c00aa96ed02cfbae750d2abc8fbbdb16d 100644
 3--- a/.github/workflows/project.yml
 4+++ b/.github/workflows/project.yml
 5@@ -113,7 +113,9 @@ jobs:
 6                 projectId: $project
 7                 itemId: $item
 8                 fieldId: $plugin_field
 9-                value: $plugin_value
10+                value: {
11+                  text: $plugin_value
12+                }
13               }) {
14                 projectV2Item {
15                   id
16@@ -123,7 +125,9 @@ jobs:
17                 projectId: $project
18                 itemId: $item
19                 fieldId: $theme_field
20-                value: $theme_value
21+                value: {
22+                  text: $theme_value
23+                }
24               }) {
25                 projectV2Item {
26                   id