Skip to content

Commit

Permalink
devops: CD only on source changes and dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
winromulus committed Jun 14, 2024
1 parent 35cce47 commit 8d48a19
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 2
registries:
public-nuget:
type: nuget-feed
url: https://api.nuget.org/v3/index.json
updates:
- package-ecosystem: nuget
directory: "/"
registries:
- public-nuget
schedule:
interval: daily
open-pull-requests-limit: 15
labels:
- "area-dependencies"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 5
labels:
- "area-dependencies"
6 changes: 6 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,17 @@ jobs:
needs: ci
runs-on: ubuntu-latest
if: >
(
contains(toJson(github.event.commits), 'src/') ||
contains(toJson(github.event.commits), 'ES.FX.sln') ||
contains(toJson(github.event.commits), 'Directory.Build.props')
) && (
github.ref == 'refs/heads/main' ||
github.ref == 'refs/heads/develop' ||
startsWith(github.ref, 'refs/heads/feature/') ||
startsWith(github.ref, 'refs/heads/release/') ||
startsWith(github.ref, 'refs/heads/hotfix/')
)
steps:
- name: checkout
Expand Down

0 comments on commit 8d48a19

Please sign in to comment.