Closed jsjoeio closed 2 years ago
facing the same issue
Faced the same issue but replaced azure/setup-helm
with the below code for now
- name: Install Helm
run: |
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
got same problem, the download link was updated or something ?
Getting same problem
Adding version solved it
- name: Helm installer
uses: Azure/setup-helm@v3
with:
version: 'v3.10.1'
They relied on the default ordering of the GH GQL api and that probably got changed...
Changing the query used here and loosing the reverse (why do that if the API can do it for you?): https://github.com/Azure/setup-helm/blob/b70d33f56dce95f7970896b826403d7c1bbe8a22/src/run.ts#L58-L73
query {
repository(name: "helm", owner: "helm") {
releases(first: 10, orderBy: {field: CREATED_AT, direction: DESC}) {
nodes {
tagName
}
}
}
}
Maybe I find time to PR this, but if somebody wants to do it be my guest!
But even when an order is added some computation of the latest need to be done. The latest could be some patch for previous major/minor.
@marcindabrowski / @vdhpieter we might want to use the isLatest
attribute from the GitHub API for this. See - graphql/reference/objects#release.
So a slight modification to @vdhpieter 's query ...
query {
repository(name: "helm", owner: "helm") {
releases(first: 10, orderBy: {field: CREATED_AT, direction: DESC}) {
nodes {
tagName
isLatest
isDraft
isPrerelease
}
}
}
}
... and then adapting the processing (ref: src/run.ts#L71-L75 might do the trick:
// ...
const latestValidRelease: string = repository.releases.nodes
.find(
({tagName, isLatest, isDraft, isPreRelease}) =>
isValidVersion(tagName) && isLatest && !isDraft && !isPreRelease
)?.tagName
if (latestValidRelease) return latestValidRelease
// ...
Related: recent announcement that the meaning of the isLatest
attribute has changed a bit since it was introduced.
Edit: PR #100 seems to fix this issue (even without the above suggestions). I've taken the liberty to leave above suggestions as review comments hoping I didn't violate any community conventions ...
The linked PR was merged but this still isn’t resolved, are we waiting for anything else?
@ImRodry the PR (https://github.com/Azure/setup-helm/pull/100) is not yet merged
Ah ok was looking at https://github.com/clusterpedia-io/clusterpedia-helm/pull/15 Do you have an ETA for when that will be merged?
This has been fixed and released in v3.4 (and v3). Please upgrade to one of these versions. Thanks!
What happened?
Version
Runner
Ubuntu 20.04.5
Relevant log output
https://github.com/coder/code-server/actions/runs/3316135595/jobs/5478071781