From 1341c241bdde482ddb64f4e853dbe506ca90d86a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?= Date: Fri, 3 Jan 2025 15:58:31 +0100 Subject: [PATCH 1/3] Replace Renovate autodiscovery with explicitly setting the repository --- .github/workflows/renovate.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index 230c84e6..64b55a82 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -19,7 +19,8 @@ jobs: GITHUB_COM_TOKEN: ${{ secrets.renovate_github_com_token }} # See LOG_LEVEL: info # debug | info | warn | error | fatal - RENOVATE_AUTODISCOVER: 'true' + # Autodiscover is better suited for an extra repo running Renovate on all desired repos + #RENOVATE_AUTODISCOVER: 'true' RENOVATE_CONFIG_FILE: renovate.json RENOVATE_ENDPOINT: ${{ github.api_url }} RENOVATE_GIT_AUTHOR: Renovate Bot @@ -29,6 +30,7 @@ jobs: RENOVATE_LOG_FILE: renovate-log.ndjson RENOVATE_LOG_FILE_LEVEL: debug RENOVATE_PLATFORM: gitea + RENOVATE_REPOSITORIES: ${{ github.repository }} RENOVATE_REPOSITORY_CACHE: 'enabled' # github.token is not working here, it lacks some permissions required by Renovate RENOVATE_TOKEN: ${{ secrets.renovate_token }} From 0fc7d9134858e27223dd32fc82067996754561e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?= Date: Fri, 3 Jan 2025 16:06:15 +0100 Subject: [PATCH 2/3] Always save the Renovate log --- .github/workflows/renovate.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index 64b55a82..26dc20ad 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -38,6 +38,7 @@ jobs: - name: Save log file # FIXME: v4 of this action causes an error on Forgejo (“You must configure a GitHub token”) uses: actions/upload-artifact@v3 + if: always() with: name: renovate-log.ndjson path: renovate-log.ndjson From f7add5ec47643ce626986bc37bfc80fd21a9a5d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?= Date: Fri, 3 Jan 2025 16:20:01 +0100 Subject: [PATCH 3/3] Looks like setting the LOG_LEVEL variable in the env section does not work Setting it before the npx command does --- .github/workflows/renovate.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index 26dc20ad..e470128c 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -13,12 +13,12 @@ jobs: - uses: actions/checkout@v4 - name: Run Renovate - run: npx renovate + # See + # debug | info | warn | error | fatal + run: LOG_LEVEL=info npx renovate env: # Renovate is using this token to retrieve release notes GITHUB_COM_TOKEN: ${{ secrets.renovate_github_com_token }} - # See - LOG_LEVEL: info # debug | info | warn | error | fatal # Autodiscover is better suited for an extra repo running Renovate on all desired repos #RENOVATE_AUTODISCOVER: 'true' RENOVATE_CONFIG_FILE: renovate.json