{
    "$schema": "http://nginx/renovate-schema.json",
    "extends": [
        "local>openvpntechnologies/ops-saas-renovate",
        "local>openvpntechnologies/core-team-renovate"
    ],
    "rebaseWhen": "behind-base-branch",
    "packageRules": [
        {
            "matchDepTypes": [
                "action"
            ],
            "groupName": "github actions",
            "pinDigests": true,
            "extends": [
                "schedule:monthly"
            ]
        },
        {
            "matchDepNames": [
                "vcpkg"
            ],
            "extends": [
                "schedule:monthly"
            ]
        }
    ],
    "customManagers": [
        {
            "customType": "regex",
            "fileMatch": ["\\.cmake$"],
            "matchStrings": [
                "datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s*set\\(.*_VERSION\\s*(?<currentValue>.*?)\\)\\s"
            ]
        },
        {
            "customType": "regex",
            "fileMatch": ["^\\.github/workflows/.+\\.yml$"],
            "matchStrings": ["vcpkgGitCommitId:\\s*(?<currentDigest>.*?)\\n"],
            "currentValueTemplate": "master",
            "depNameTemplate": "vcpkg",
            "packageNameTemplate": "https://github.com/microsoft/vcpkg",
            "datasourceTemplate": "git-refs"
        },
        {
            "customType": "regex",
            "fileMatch": ["^\\.github/workflows/.+\\.yml$"],
            "matchStrings": ["versioning=(?<versioning>.*?)\\n\\s*repository:\\s*(?<depName>.*?)\\n\\s*ref:\\s*(?<currentValue>.*?)\\n"],
            "datasourceTemplate": "github-tags"
        }
    ]
}
