Add a way to override the default version of a tool
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- github-actions, javascript
- 领域
- ci-cd
调研方向
首先阅读 action 的版本选择行为,并将其与 issue 中描述的 .travis.yml 和 ci.yml 示例进行比较。当 consumer 提供的工具版本具有优先权,同时诸如 purescript-0.14 这样的分支可以为未指定版本的 workflow 定义默认值时,此更改即完成。
由索引模型根据 Issue 内容生成。
描述
This idea came to me while reading through https://github.com/purescript/purescript/issues/3942, specifically the part about updating CI to use the v0.14.0-rc2 tag:
- Update .travis.yml to grab the most recent RC (see eg purescript/purescript-prelude@268870d)
Thinking about how this would map onto GitHub Actions, the obvious thing to do would be to go through all of the purescript-contrib libraries and update their ci.yml files to point to a specific tag:
steps:
- uses: actions/checkout@v2
- uses: purescript-contrib/setup-purescript@main
with:
purescript: "0.14.0-rc2"
- run: spago build
However, doing it this way seems like it would cause headaches if we get into the situation where a future release candidate is needed, as we would then have to go through all the libraries again to update the tag.
As an alternative solution, I'd like to propose creating a new branch (purescript-0.14, for example) for the PureScript v0.14.0 release. On this branch we'd reference whatever the latest v0.14.0 tag is as the default instead of latest.
We can then update all of the purescript-contrib libraries to point to our separate branch:
steps:
- uses: actions/checkout@v2
- uses: purescript-contrib/setup-purescript@purescript-0.14
- run: spago build
This way if we did end up having to go through multiple release candidates we could just bump the version of PureScript referenced on the purescript-0.14 branch and all of the projects referencing that branch would then pull the correct version.
In order to accomplish this it seems like we would need to add a way to override the default version of a tool that should be used if one is not provided by the consumer of the Action.
- 主要语言
- JavaScript
- 星标
- 46
- 派生
- 8
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
purescript-contrib/setup-purescript 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 2/5 1-3 小时 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 35/100
purescript-contrib/setup-purescript#32 · 6 条评论 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 35/100
purescript-contrib/setup-purescript#31 · 1 条评论 · 1 个 reaction ·
-
enhancement good first issue
难度 3/5 1-2 天 新手友好度 45/100
purescript-contrib/setup-purescript#23 · 2 条评论 ·
查看 purescript-contrib/setup-purescript 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 70/100
babalae/bettergi-scripts-list#3674 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
vadimdemedes/ink#1029 ·
-
code-quality refactoring
难度 2/5 1-3 小时 新手友好度 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
难度 2/5 1-3 小时 新手友好度 74/100
langchain-ai/deepagents#6450 ·
-
optimization optimization:agents-md-curator
难度 2/5 1-3 小时 新手友好度 86/100
githubnext/gh-aw-cao#13143 ·