Skip to content

Commit

Permalink
Update dependabot configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
serverless-qe committed Jan 17, 2025
1 parent e6beb76 commit e7a0449
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 16 deletions.
59 changes: 47 additions & 12 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,48 @@
version: 2
version: "2"
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
ignore:
- dependency-name: "k8s.io/*"
- dependency-name: "knative.dev/*"
- package-ecosystem: gomod
directories:
- /
schedule:
interval: weekly
ignore:
- dependency-name: knative.dev/*
- dependency-name: k8s.io/*
update-types:
- version-update:semver-major
- version-update:semver-minor
- dependency-name: github.com/openshift/*
update-types:
- version-update:semver-major
- version-update:semver-minor
- dependency-name: sigs.k8s.io/controller-runtime
update-types:
- version-update:semver-major
- version-update:semver-minor
target-branch: main
commit-message:
prefix: '[main][gomod]'
open-pull-requests-limit: 10
- package-ecosystem: gomod
directories:
- /
schedule:
interval: weekly
ignore:
- dependency-name: knative.dev/*
- dependency-name: k8s.io/*
update-types:
- version-update:semver-major
- version-update:semver-minor
- dependency-name: github.com/openshift/*
update-types:
- version-update:semver-major
- version-update:semver-minor
- dependency-name: sigs.k8s.io/controller-runtime
update-types:
- version-update:semver-major
- version-update:semver-minor
target-branch: release-1.35
commit-message:
prefix: '[release-1.35][gomod]'
open-pull-requests-limit: 10
13 changes: 9 additions & 4 deletions .github/workflows/dependabot-deps.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

name: Dependabot

on:
Expand All @@ -7,7 +8,7 @@ permissions:
contents: write

jobs:
generate_some_code:
update-deps:
name: Update deps
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
Expand All @@ -22,9 +23,13 @@ jobs:
- name: Setup Golang
uses: openshift-knative/hack/actions/setup-go@main

- name: Run ./hack/update-deps.sh
- name: Install yq
run: |
go install github.com/mikefarah/yq/v3@latest
- name: Generate files
working-directory: ./src/github.com/${{ github.repository }}
run: ./hack/update-deps.sh
run: make generated-files

- name: git push
working-directory: ./src/github.com/${{ github.repository }}
Expand All @@ -34,6 +39,6 @@ jobs:
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "Run ./hack/update-deps.sh"
git commit -m "Run generate release"
git push
fi

0 comments on commit e7a0449

Please sign in to comment.