{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": [
    "config:base",
    "helpers:pinGitHubActionDigests",
    "github>msfjarvis/shared-workflows//renovate/automerge"
  ],
  "packageRules": [
    {
      "packageNames": ["gohugoio/hugo"],
      "extractVersion": "^v(?<version>\\d+\\.\\d+\\.\\d+)"
    }
  ],
  "regexManagers": [
    {
      "description": "Update Hugo version in Actions workflows",
      "fileMatch": [".yml$", ".toml$"],
      "matchStrings": [
        "hugo-version: '(?<currentValue>.*?)'",
        "HUGO_VERSION = \"(?<currentValue>.*?)\""
      ],
      "depNameTemplate": "gohugoio/hugo",
      "datasourceTemplate": "github-releases"
    },
    {
      "description": "Update Decap CMS",
      "fileMatch": ["static/admin/index.html"],
      "matchStrings": [
        "\/decap-cms@(?<currentValue>.*?)\/dist"
      ],
      "depNameTemplate": "decap-cms",
      "datasourceTemplate": "npm"
    }
  ],
  "commitMessageSuffix": "[staging]"
}
