Skip to content

Renovate extract GHA public beta partner ARM runner images #1818

@leotm

Description

@leotm

Renovate discovers actions/runner-images macOS Arm64
not actions/partner-runner-images Linux (and Windows) Arm64

    {
      // packageRule
      "matchManagers": ["github-actions"],
      "matchDatasources": ["github-runners"],
      "matchPackageNames": ["ubuntu-24.04-arm"],
      "minimumReleaseAge": null,
      "ignoreUnstable": false,
      "enabled": true
    },
// no pr created
// mvp config
{
  "extends": ["config:recommended"],
  "enabledManagers": ["custom.regex"],
  "customManagers": [
    {
      "customType": "regex",
      "managerFilePatterns": ["/^\\.github\\/workflows\\/.*\\.ya?ml$/"],
      "matchStrings": [
        "(?m)^(?<indent>\\s*)runs-on:\\s*(?:\\[\\s*)?(?:['\\\"])?(?<currentValue>ubuntu-24\\.04)(?:['\\\"])?(?:\\s*\\])?"
      ],
      "datasourceTemplate": "static",
      "depNameTemplate": "ubuntu-24.04-migration-to-arm-template",
      "versioningTemplate": "static",
      "autoReplaceStringTemplate": "\n    runs-on: ubuntu-24.04-arm"
    }
  ],
  "packageRules": [
    {
      "matchDepNames": ["ubuntu-runner-migration"],
      "enabled": true
    }
  ]
}
// no pr created
% fnm use latest
export RENOVATE_CONFIG_FILE="$(pwd)/renovate.json5"
export LOG_LEVEL=trace
npx renovate --platform=local --require-config=ignored --dry-run=full --repository-cache=reset

You're almost there...

TRACE: lookupUpdates (repository=local, dependency=ubuntu)
       "currentValue": "24.04"
DEBUG: Versioning: 'static' not found, falling back to semver-coerced (repository=local)
TRACE: lookupUpdates (repository=local, dependency=ubuntu-runner-migration)
       "currentValue": "ubuntu-24.04"
TRACE: Dependency lookup success (repository=local, packageFile=.github/workflows/android.yml)
       "dep": {
         "versioning": "static",
         "updates": [],
         "warnings": [],
         "skipReason": "invalid-config"
       },
       "manager": "regex"

update yml manually

runs-on: ubuntu-24.04 # https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md

or upstream https://github.com/renovatebot/renovate/blob/main/lib/modules/manager/github-actions/extract.ts validator regex

or new extendable preset e.g. :includeArmSuffix / :includeArmArch / :includeArmRunners :partnerRunnerImages

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐧Linux: Ubuntu 22.04 LTS for Android CIarm64CPU architecturebeta:rage2:ciGitHub Actions workflow - Bundling / Building / Compiling / Integrating / Testingdep-manRenovate and Dependabotp: Renovatewindows

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions