diff --git a/.github/renovate.json b/.github/renovate.json index 003812c..553906b 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -24,17 +24,23 @@ "^webpack" ], "enabled": false + }, + { + "packageNames": ["gohugoio/hugo"], + "extractVersion": "^v(?\\d+\\.\\d+\\.\\d+)", } ], "regexManagers": [ { - "description": "Update versions in Actions files", + "description": "Update Hugo version in Actions workflows", "fileMatch": [ ".yml$" ], "matchStrings": [ - "datasource=(?.*?)\s(depName=(?.*?))?\s.*-version: '(?.*?)'" - ] + "hugo-version: '(?.*?)'" + ], + "depNameTemplate": "gohugoio/hugo", + "datasourceTemplate": "github-releases" } ], "commitMessageSuffix": "[staging]" diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index d83097c..060d622 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -16,14 +16,12 @@ jobs: - name: Setup Latest Version of Hugo uses: peaceiris/actions-hugo@v2 with: - # renovate: datasource=github-releases depName=gohugoio/hugo hugo-version: '0.91.0' extended: true - uses: actions/setup-go@v3 with: - # renovate: datasource=golang-version - go-version: '1.17.5' + go-version-file: 'go.mod' - name: Build shell: bash diff --git a/.github/workflows/deploy-to-cloudflare.yml b/.github/workflows/deploy-to-cloudflare.yml index 39f47cb..aad759e 100644 --- a/.github/workflows/deploy-to-cloudflare.yml +++ b/.github/workflows/deploy-to-cloudflare.yml @@ -23,14 +23,12 @@ jobs: - name: Setup Latest Version of Hugo uses: peaceiris/actions-hugo@v2 with: - # renovate: datasource=github-releases depName=gohugoio/hugo hugo-version: '0.91.0' extended: true - uses: actions/setup-go@v3 with: - # renovate: datasource=golang-version - go-version: '1.17.5' + go-version-file: 'go.mod' - name: Build Hugo Site shell: bash @@ -63,14 +61,12 @@ jobs: - name: Setup Latest Version of Hugo uses: peaceiris/actions-hugo@v2 with: - # renovate: datasource=github-releases depName=gohugoio/hugo hugo-version: '0.91.0' extended: true - uses: actions/setup-go@v3 with: - # renovate: datasource=golang-version - go-version: '1.17.5' + go-version-file: 'go.mod' - name: Build Hugo Site shell: bash