From 2755bac43ddcb28c095fd0daf84c8c79fe8949de Mon Sep 17 00:00:00 2001 From: Botond Szirtes Date: Thu, 20 Feb 2025 15:17:22 +0100 Subject: [PATCH] Enable dependabot for updating github actions Signed-off-by: Botond Szirtes --- .github/dependabot.yml | 17 +++++++++++++++++ .github/workflows/automerge.yaml | 2 +- .../update-dependent-repositories-gomod.yaml | 1 + 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..50b55a7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,17 @@ +--- +# Set update schedule for GitHub Actions + +version: 2 +updates: + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every week + interval: "weekly" + groups: + gh-actions-minor: + applies-to: version-updates + update-types: + - "minor" + - "patch" diff --git a/.github/workflows/automerge.yaml b/.github/workflows/automerge.yaml index f967af0..3247936 100644 --- a/.github/workflows/automerge.yaml +++ b/.github/workflows/automerge.yaml @@ -8,7 +8,7 @@ on: - 'ci' jobs: automerge: - if: ${{ github.event.workflow_run.conclusion == 'success' && github.actor == 'nsmbot'}} + if: ${{ github.event.workflow_run.conclusion == 'success' && (github.actor == 'nsmbot' || github.actor == 'dependabot[bot]')}} uses: networkservicemesh/.github/.github/workflows/automerge.yaml@main secrets: token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} diff --git a/.github/workflows/update-dependent-repositories-gomod.yaml b/.github/workflows/update-dependent-repositories-gomod.yaml index d75dc92..747d994 100644 --- a/.github/workflows/update-dependent-repositories-gomod.yaml +++ b/.github/workflows/update-dependent-repositories-gomod.yaml @@ -6,6 +6,7 @@ on: - main jobs: release: + if: ${{ github.event.commits[0].author.name != 'dependabot[bot]' }} uses: networkservicemesh/.github/.github/workflows/update-dependent-repositories-gomod.yaml@main with: dependent_repositories: '["cmd-forwarder-ovs"]'