pr-size-labeler icon indicating copy to clipboard operation
pr-size-labeler copied to clipboard

Action fails: parse error: Invalid numeric literal at line 1, column 6

Open lukehinds opened this issue 2 years ago • 7 comments

I get several failures and the label is not assigned:

Usage: basename FILE [SUFFIX]

Strip directory path and .SUFFIX from FILE
parse error: Invalid numeric literal at line 1, column 4
/src/github.sh: line 29: ((: changes += : syntax error: operand expected (error token is "+= ")
parse error: Invalid numeric literal at line 1, column 6
BusyBox v1.34.1 (2022-07-19 20:11:24 UTC) multi-call binary.

Usage: basename FILE [SUFFIX]

Strip directory path and .SUFFIX from FILE
parse error: Invalid numeric literal at line 1, column 6
/src/github.sh: line 29: ((: changes += : syntax error: operand expected (error token is "+= ")
Total modifications (additions + deletions): 0
Ignoring files (if present): "pkg/generated/*""docs/*""database/mock/store.go""go.mod""go.sum"
Labeling pull request with size/xs
jq: error (at <stdin>:1): Cannot iterate over null (null)
Final labels: "size/xs"

lukehinds avatar Aug 21 '23 18:08 lukehinds

I'm seeing the same thing:

image

crishellco avatar Aug 21 '23 21:08 crishellco

I stopped using this action, its too unstable and prone to breaking.

lukehinds avatar Sep 04 '23 12:09 lukehinds

Same issue. I guess this action is not maintained anymore 🤷

Tuizi avatar Nov 14 '23 17:11 Tuizi

Check your github api url it should be https://api.github.com and not api.github.com.

EnyMan avatar Nov 21 '23 11:11 EnyMan

Are you sure @EnyMan? using https:// give the error: curl: (3) URL rejected: Malformed input to a URL function

Tuizi avatar Jan 24 '24 19:01 Tuizi

@Tuizi Yes we have it setn like this github_api_url: 'https://api.github.com' and it works

EnyMan avatar Jan 24 '24 20:01 EnyMan

I stopped using this action, its too unstable and prone to breaking.

@lukehinds Take a look at the latest version v.1.10.0. I thought the same thing about the project not being maintained, but I was able to connect with the maintainers and we pushed a lot of fixes recently and a couple features.

johnlk avatar May 14 '24 22:05 johnlk

This issue was resolved with #62 and #57

johnlk avatar Jun 09 '24 17:06 johnlk