Browse Source

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
Marc Cornellà 1 year ago
parent
commit
1342459b15
1 changed files with 6 additions and 2 deletions
  1. 6 2
      .github/workflows/project.yml

+ 6 - 2
.github/workflows/project.yml

@@ -113,7 +113,9 @@ jobs:
                 projectId: $project
                 itemId: $item
                 fieldId: $plugin_field
-                value: $plugin_value
+                value: {
+                  text: $plugin_value
+                }
               }) {
                 projectV2Item {
                   id
@@ -123,7 +125,9 @@ jobs:
                 projectId: $project
                 itemId: $item
                 fieldId: $theme_field
-                value: $theme_value
+                value: {
+                  text: $theme_value
+                }
               }) {
                 projectV2Item {
                   id