如何自动更新 GitHub actions 的版本(带有 renovate)?

问题描述 投票:0回答:1

我在 GitHub 上使用 renovate 作为应用程序,它成功更新了我的

package.json

我希望动作文件本身具有类似的功能 .github/工作流程

例如一个步骤

steps:
 - uses: actions/checkout@v3

应更新以使用当前版本的操作:

steps:
- uses: actions/checkout@v4

=> 翻新可以吗?

如果是:如何让它工作/如何正确配置来做到这一点?

如果没有:还有其他工具吗?或者我需要手动执行此操作? (然后我用手动更新*.yml交换了手动更新package.json)

https://docs.renovatebot.com/modules/manager/github-actions/

它指出

“Renovate 支持更新 Github Actions 依赖项。”

但我不明白如何激活它。

相关:

使用最新版本的 GitHub Action

https://github.com/renovatebot/renovate/discussions/28625

continuous-integration github-actions renovate
1个回答
0
投票

将文件dependabot.yml直接放在.github文件夹下:

# Set update schedule for GitHub Actions

version: 2
updates:

  - package-ecosystem: "github-actions"
    directory: "/"
    schedule:
      # Check for updates to GitHub Actions every week
      interval: "weekly"

https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot#example-dependabotyml-file-for- github-actions

© www.soinside.com 2019 - 2024. All rights reserved.