Fix triage labeling workflow#328
Conversation
azazeal
left a comment
There was a problem hiding this comment.
It seems to just be using gh, why does it need a checkout?
|
I'm debugging action runs in a few repos. Take this for example: https://github.com/smallstep/cli/actions/workflows/triage.yml. It started failing recently, mentioning no git repository was present when labeling the PR. The removal of the checkout seemed like a likely cause, but testing it out, doesn't seem to resolve it yet. |
I've dug and it is the underlying issue, yes. But it's clearly a bug in Could we try this first instead please, to avoid cloning (in case we can avoid it)? gh api \
--method POST \
repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels \
--field 'labels[]=needs triage' |
cdb139c to
0b9040c
Compare
0b9040c to
ccebb2a
Compare
The checkout was removed in 6ec0ba4. The checkout action is in fact used.