GithubActions icon indicating copy to clipboard operation
GithubActions copied to clipboard

Excavator fails to run `checkver` with `script` specified

Open Locietta opened this issue 11 months ago • 0 comments

Some of my manifests have script specified in checkver (e.g. https://github.com/Locietta/sniffer/blob/master/bucket/foxmail.json). It works well when I'm testing locally with ./bin/checkver.ps1 -u, but it doesn't work for Excavactor now. (It works 4 months ago though, according to the file commit history.)

Related checkver

"checkver": {
    "script": [
        "$dl_url = 'https://www.foxmail.com/win/download'",
        "$header = Invoke-WebRequest -Method Head -Uri $dl_url",
        "$header.BaseResponse.RequestMessage.RequestUri.OriginalString"
    ],
    "regex": "FoxmailSetup_([\\d.]+).exe"
},

Related action Logs

VERBOSE: HEAD https://www.foxmail.com/win/download with 0-byte payload
VERBOSE: received 127009152-byte response of content type application/octet-stream
foxmail: couldn't match 'FoxmailSetup_([\d.]+).exe' in https://www.foxmail.com/

full log: https://github.com/Locietta/sniffer/actions/runs/8200715277/job/22428004785

It looks like excavactor mistakenly use regex over homepage, instead of the result of script.

Locietta avatar Mar 08 '24 09:03 Locietta