From c7b8ac3e39c69b738efdd0676f875406d5763a2f Mon Sep 17 00:00:00 2001 From: Moritz Wiesinger Date: Tue, 26 Nov 2024 17:07:03 +0100 Subject: [PATCH] [chore] track markdown-link-check with renovate (#36552) #### Description This PR adds markdown-link-check to the tracked dependencies of renovate. It achieves that by using the [`customManagers:githubActionsVersions`](https://docs.renovatebot.com/presets-customManagers/#custommanagersgithubactionsversions) renovate preset that enables user to update arbitrary versions in github actions files without having to maintain their own regex for them. #### Link to tracking issue Fixes #36259 #### Testing This setup is already in use in the dynatrace collector distro and works great: [latest update PR](https://github.com/Dynatrace/dynatrace-otel-collector/pull/382), [renovate config](https://github.com/Dynatrace/dynatrace-otel-collector/blob/07e4662f92b0cadfb311eca74c9269c1c1598634/renovate.json#L6) --------- Signed-off-by: Moritz Wiesinger --- .github/workflows/changelog.yml | 4 +++- .github/workflows/check-links.yaml | 6 +++++- renovate.json | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index fe0c50398f0f..97a9d78c2b3d 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -15,6 +15,8 @@ env: # Make sure to exit early if cache segment download times out after 2 minutes. # We limit cache download as a whole to 5 minutes. SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2 + # renovate: datasource=github-releases depName=tcort/markdown-link-check + MD_LINK_CHECK_VERSION: "3.12.2" concurrency: group: ${{ github.workflow }}-${{ github.head_ref }} @@ -84,7 +86,7 @@ jobs: run: make chlog-preview > changelog_preview.md - name: Install markdown-link-check if: ${{ !contains(github.event.pull_request.labels.*.name, 'dependencies') && !contains(github.event.pull_request.labels.*.name, 'Skip Changelog') && !contains(github.event.pull_request.title, '[chore]')}} - run: npm install -g markdown-link-check@3.12.2 + run: npm install -g markdown-link-check@${{ env.MD_LINK_CHECK_VERSION }} - name: Run markdown-link-check if: ${{ !contains(github.event.pull_request.labels.*.name, 'dependencies') && !contains(github.event.pull_request.labels.*.name, 'Skip Changelog') && !contains(github.event.pull_request.title, '[chore]')}} run: | diff --git a/.github/workflows/check-links.yaml b/.github/workflows/check-links.yaml index 224549ba628a..bbfd0bb2ed49 100644 --- a/.github/workflows/check-links.yaml +++ b/.github/workflows/check-links.yaml @@ -9,6 +9,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true +env: + # renovate: datasource=github-releases depName=tcort/markdown-link-check + MD_LINK_CHECK_VERSION: "3.12.2" + jobs: changedfiles: name: changed files @@ -36,7 +40,7 @@ jobs: fetch-depth: 0 - name: Install markdown-link-check - run: npm install -g markdown-link-check@3.12.2 + run: npm install -g markdown-link-check@${{ env.MD_LINK_CHECK_VERSION }} - name: Run markdown-link-check run: | diff --git a/renovate.json b/renovate.json index 74d57112f1c1..3e65271caca1 100644 --- a/renovate.json +++ b/renovate.json @@ -8,7 +8,10 @@ "go": "1.22.0" }, "schedule": ["every tuesday"], - "extends": ["config:recommended"], + "extends": [ + "config:recommended", + "customManagers:githubActionsVersions" + ], "ignorePaths": [ "**/receiver/apachesparkreceiver/testdata/integration/Dockerfile.apache-spark", "**/receiver/elasticsearchreceiver/testdata/integration/Dockerfile.elasticsearch.7_16_3",