如何指定工作流程应使用当前版本,而GitHub操作中的n个先前版本?

发布于 2025-01-28 07:03:49 字数 190 浏览 1 评论 0原文

我正在使用GitHub操作运行一些工作流,这些操作需要使用节点。我不必要在矩阵中包含的数字版本进行编码,而是要使用最新版本和3个以前的版本,我希望使用类似版本。

这样可以确保我不需要更新具有新版本的版本矩阵,并且可以确认在此之前始终支持当前版本和3个先前版本的要求。

但是找不到这种方式指定版本的方法。知道是否可以吗?如果是这样,怎么样?

I am running some workflows using github actions, that requires using node. Instead of having to hardcode the numeric versions I want to include in the matrix, I would prefer if I could specify something like, use the latest version and 3 previous versions.

This ensures I do not need to update the version matrix with new releases and I can confirm to the requirement to always support the current version and 3 previous versions before that.

But could not find a way to specify the version this way. Any idea if this is possible? If so, how?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文