From eeb1e9a2c77f159cb2f2beaaebae9ed3cd818952 Mon Sep 17 00:00:00 2001 From: "Marcus R. Brown" Date: Thu, 29 Feb 2024 14:29:21 -0700 Subject: [PATCH] feat(renovate): always enable the cache --- .changeset/smart-gifts-vanish.md | 5 +++++ .github/workflows/renovate.yaml | 10 ++++------ 2 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 .changeset/smart-gifts-vanish.md diff --git a/.changeset/smart-gifts-vanish.md b/.changeset/smart-gifts-vanish.md new file mode 100644 index 0000000..7f7e9f1 --- /dev/null +++ b/.changeset/smart-gifts-vanish.md @@ -0,0 +1,5 @@ +--- +"@bfra.me/.github": minor +--- + +Renovate: Always enable the Renovate cache diff --git a/.github/workflows/renovate.yaml b/.github/workflows/renovate.yaml index 4d6cdb2..a483e91 100644 --- a/.github/workflows/renovate.yaml +++ b/.github/workflows/renovate.yaml @@ -43,8 +43,8 @@ name: Renovate default: false concurrency: - group: ${{ github.repository }}-${{ github.workflow }}-${{ github.event.number || github.ref }} - cancel-in-progress: false + group: ${{ github.repository }}-${{ github.workflow }}-${{ github.run_number || github.ref }} + cancel-in-progress: true permissions: contents: read @@ -87,18 +87,16 @@ jobs: env: autodiscover: >- ${{ github.event.repository.name == '.github' && !contains('["issues", "pull_request"]', github.event_name) && github.ref == 'refs/heads/main' }} - cache: >- - ${{ !contains('["issues", "pull_request"]', github.event_name) && github.ref == 'refs/heads/main' || contains(github.ref_name, 'renovate/') }} dry_run: ${{ github.event_name == 'push' && github.ref != 'refs/heads/main' }} if: github.event_name != 'push' || steps.filter.outputs.changes == 'true' uses: bfra-me/renovate-action@d70f30baeea066ac74bf1cc65e4d43214af3de51 # v3.7.3 with: autodiscover: ${{ env.autodiscover }} branch: ${{ env.dry_run == 'true' && github.ref_name || '' }} - cache: ${{ env.cache }} + cache: true dry_run: ${{ env.dry_run }} log_level: ${{ inputs.log_level || env.WORKFLOW_LOG_LEVEL }} - print_config: ${{ inputs.print_config }} + print_config: ${{ inputs.print_config || github.event_name == 'push' }} renovate_app_id: ${{ secrets.APPLICATION_ID }} renovate_app_pem: ${{ secrets.APPLICATION_PRIVATE_KEY }} renovate_app_slug: ${{ inputs.renovate_app_slug || github.repository_owner }}