From 9bce6758c61274765fd878278b5bc6508b3cf634 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Tue, 7 Sep 2021 13:50:32 +0300 Subject: [PATCH 1/2] Enable Dependabot --- .github/dependabot.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..b5bcf62 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + time: "04:00" + open-pull-requests-limit: 5 + rebase-strategy: "disabled" From 4c85c5244817496c1dded99a4030c95fe161959c Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Tue, 7 Sep 2021 13:54:21 +0300 Subject: [PATCH 2/2] Trigger CI jobs only for PRs and main to minimize the resource usage when we & Dependabot push to branches --- .github/workflows/ci.yml | 8 +++++++- .github/workflows/trigger-gitlab.yml | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c91326..20ff13e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,12 @@ name: Tests -on: [pull_request, push] +on: + pull_request: + branches: + - "*" + push: + branches: + - main jobs: pylint: diff --git a/.github/workflows/trigger-gitlab.yml b/.github/workflows/trigger-gitlab.yml index efb450d..c3b8803 100644 --- a/.github/workflows/trigger-gitlab.yml +++ b/.github/workflows/trigger-gitlab.yml @@ -1,7 +1,11 @@ # inspired by rhinstaller/anaconda name: Trigger GitLab CI -on: [push, pull_request_target] +on: + pull_request_target: + push: + branches: + - main jobs: pr-info: