From ce5324bd0ffaa77dfce470dac92357449d30eca5 Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Mon, 13 Mar 2023 00:24:16 +0100 Subject: [PATCH] enable dependabot for GitHub actions (#37) * enable dependabot for GitHub actions This allows us to get updates for GitHub actions automatically. I have used this for my own packages as well as our [Trixi.jl framework](https://github.com/trixi-framework). After merging this, we should also enable other Dependabot actions in "Settings -> Code security and analysis -> Dependabot alerts" and "... -> Dependabot security updates". After merging this, Dependabot will prepare PRs with updates of the versions of GitHub actions we use such as. I think it would be nice to have this in all of SciML. To get the discussion started, I picked this repo since the CI tests are not very expensive. * format --- .github/workflows/dependabot.yml | 7 +++++++ docs/make.jl | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/dependabot.yml diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml new file mode 100644 index 0000000..700707c --- /dev/null +++ b/.github/workflows/dependabot.yml @@ -0,0 +1,7 @@ +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" # Location of package manifests + schedule: + interval: "weekly" diff --git a/docs/make.jl b/docs/make.jl index 267e8ad..c1a58e6 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -7,8 +7,10 @@ end using MuladdMacro -cp(joinpath(@__DIR__, "Manifest.toml"), joinpath(@__DIR__, "src/assets/Manifest.toml"); force = true) -cp(joinpath(@__DIR__, "Project.toml"), joinpath(@__DIR__, "src/assets/Project.toml"); force = true) +cp(joinpath(@__DIR__, "Manifest.toml"), joinpath(@__DIR__, "src/assets/Manifest.toml"); + force = true) +cp(joinpath(@__DIR__, "Project.toml"), joinpath(@__DIR__, "src/assets/Project.toml"); + force = true) makedocs(; modules = [MuladdMacro],