Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excavator fails to run checkver with script specified #42

Open
Locietta opened this issue Mar 8, 2024 · 0 comments
Open

Excavator fails to run checkver with script specified #42

Locietta opened this issue Mar 8, 2024 · 0 comments

Comments

@Locietta
Copy link

Locietta commented Mar 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant