Skip to content

Commit e5c124d

Browse files
committed
always pass the value as a string
1 parent 97f43eb commit e5c124d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ runs:
137137
OPTION_ID: ${{ steps.parse_project_metadata.outputs.option_id }}
138138
ITEM_TITLE: ${{ steps.parse_project_metadata.outputs.item_title }}
139139
QUERY: |
140-
mutation($project: ID!, $item: ID!, $field: ID!, $value: ID!) {
140+
mutation($project: ID!, $item: ID!, $field: ID!, $value: String!) {
141141
updateProjectNextItemField(
142142
input: {
143143
projectId: $project
@@ -159,7 +159,6 @@ runs:
159159
export VALUE_TO_SET="$OPTION_ID"
160160
else
161161
export VALUE_TO_SET="$VALUE"
162-
QUERY=$(sed "s/value: ID/value: String/" <<< $QUERY)
163162
fi
164163
165164
gh api graphql --header 'GraphQL-Features: projects_next_graphql' -f query="$QUERY" -f project=$PROJECT_ID -f item=$ITEM_ID -f field=$FIELD_ID -f value="$VALUE_TO_SET"

0 commit comments

Comments
 (0)