Comments (12)
Getting same problem
Adding version solved it
- name: Helm installer
uses: Azure/setup-helm@v3
with:
version: 'v3.10.1'
from setup-helm.
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
from setup-helm.
This has been fixed and released in v3.4 (and v3). Please upgrade to one of these versions. Thanks!
from setup-helm.
#100 will be merged in and released shortly. That fixes this issue. Thanks everyone for the help!
from setup-helm.
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?):
Lines 58 to 73 in b70d33f
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!
from setup-helm.
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.
from setup-helm.
@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 ...
from setup-helm.
facing the same issue
from setup-helm.
got same problem, the download link was updated or something ?
from setup-helm.
The linked PR was merged but this still isn’t resolved, are we waiting for anything else?
from setup-helm.
@ImRodry the PR (#100) is not yet merged
from setup-helm.
Ah ok was looking at clusterpedia-io/clusterpedia-helm#15
Do you have an ETA for when that will be merged?
from setup-helm.
Related Issues (20)
- Bug: Script is giving warning for set output. HOT 2
- Feature Request: install latest patch version HOT 9
- Feature Request: Support binary mirror HOT 20
- Bug: Amd64 installed instead of arm HOT 8
- Upgrade action to use node20 HOT 5
- Bug: unzip not available on ARC runners with default image HOT 2
- Bug: Action is reported as deprecated
- Bug: Has a v4.0.0, but no v4 HOT 13
- Failed to download Helm in proxy based environments HOT 1
- Dont require github.com token HOT 5
- Support for different architectures HOT 2
- version-range does not work with v2 HOT 4
- Unexpected HTTP response: 403 with v2 HOT 23
- Warning: Unexpected input(s) 'id', valid inputs are ['version', 'token'] HOT 1
- Add `v2` tag HOT 1
- Warning: Error while fetching latest Helm release HOT 1
- Bug: HOT 1
- Bug: Latest version is grabbing alpha version of tool HOT 5
- Bug: Latest is incorrectly pulling last result in gh api release queries and not the latest release HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup-helm.