Skip to content
Permalink
Browse files

[github] fix auto milestone bot

  • Loading branch information
3nids committed Jan 10, 2020
1 parent 1c5bd1a commit f8620e849f2efda2d9586bb48a7c31f57913e12b
Showing with 1 addition and 1 deletion.
  1. +1 −1 .github/workflows/pr-auto-milestone.yml
@@ -67,7 +67,7 @@ jobs:
MILESTONE_NUMBER=$(echo "${JSON_DATA}" | jq ".repository.refs.edges[] | select( .node.name == \"${MILESTONE_TITLE}\" ) | .node.number")
echo "MILESTONE_NUMBER: ${MILESTONE_NUMBER}"
echo "::set-output name=milestone_number::${MILESTONE_NUMBER}"
MILESTONE_EXISTS=$([[ -n $echo("${JSON_DATA} | jq ".repository.refs.edges[].node.name | select( . | test(\"^${MILESTONE_TITLE}\") )" ]] && echo "true" || echo "false")
MILESTONE_EXISTS=$([[ -n $(echo "${JSON_DATA}" | jq ".repository.refs.edges[].node.name | select( . | test(\"^${MILESTONE_TITLE}\") ) ") ]] && echo "true" || echo "false" )
echo "MILESTONE_EXISTS: ${MILESTONE_EXISTS}"
echo "::set-output name=milestone_exists::${MILESTONE_EXISTS}"

0 comments on commit f8620e8

Please sign in to comment.
You can’t perform that action at this time.