From fa17830c4083cefccb064bee91a4127a741edc7d Mon Sep 17 00:00:00 2001 From: Olga Lyashevska Date: Tue, 20 Aug 2024 16:56:50 +0200 Subject: [PATCH 1/2] Add dependabot to package --- template/.github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 template/.github/dependabot.yml diff --git a/template/.github/dependabot.yml b/template/.github/dependabot.yml new file mode 100644 index 00000000..8a6c1559 --- /dev/null +++ b/template/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: ".github/workflows" + schedule: + interval: "daily" From 83c15fd49ce35c7cdc4fba9f0fd979621e4a0fb6 Mon Sep 17 00:00:00 2001 From: Olga Lyashevska Date: Wed, 21 Aug 2024 12:22:56 +0200 Subject: [PATCH 2/2] Add dependabot question --- copier.yml | 5 +++++ ...t.yml => {% if AddDependabot %}dependabot.yml{% endif %}} | 0 2 files changed, 5 insertions(+) rename template/.github/{dependabot.yml => {% if AddDependabot %}dependabot.yml{% endif %}} (100%) diff --git a/copier.yml b/copier.yml index 04123c2c..d17c8589 100644 --- a/copier.yml +++ b/copier.yml @@ -77,6 +77,11 @@ AddGitHubActions: default: "{{ template_profile != 'minimum' }}" help: GitHub actions to test the package and the documentation +AddDependabot: + when: "{{ template_profile == 'ask' }}" + type: bool + default: "{{ template_profile != 'minimum' }}" + help: Include dependabot to keep dependencies up to date? # internal fields _subdirectory: template diff --git a/template/.github/dependabot.yml b/template/.github/{% if AddDependabot %}dependabot.yml{% endif %} similarity index 100% rename from template/.github/dependabot.yml rename to template/.github/{% if AddDependabot %}dependabot.yml{% endif %}