You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to do an issue search in a GH Action, but gh issue list fails when I provide a search option. I'd guess that this is user error, but I can't figure out what I'm doing wrong. Any suggestions?
I have two open Issues:
Link Checker Dashboard 🔗
Renovate Dashboard 🤖
- name: Print raw issue unfiltered
id: raw-issue-un
shell: bash
env:
GH_TOKEN: "${{ steps.app-token.outputs.token }}"
run: |
temp=$( \
gh issue list \
--state open \
--json number \
)
echo "${temp}"
returns [{"number":5710},{"number":1109}]
but
- name: Print raw issue
id: raw-issue
shell: bash
env:
GH_TOKEN: "${{ steps.app-token.outputs.token }}"
run: |
temp=$( \
gh issue list \
--search "Link in:title" \
--state open \
--json number \
)
echo "${{ env.WORKFLOW_ISSUE_TITLE }}"
echo "${temp}"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Select Topic Area
Question
Body
I'm trying to do an issue search in a GH Action, but
gh issue list
fails when I provide a search option. I'd guess that this is user error, but I can't figure out what I'm doing wrong. Any suggestions?I have two open Issues:
returns [{"number":5710},{"number":1109}]
but
returns
Link Checker Dashboard
Beta Was this translation helpful? Give feedback.
All reactions