Skip to content

Commit 7c0daba

Browse files
authored
Create dependabot.yml (#11)
* Create dependabot.yml * make workflows run successful when no changes
1 parent 61b9823 commit 7c0daba

4 files changed

Lines changed: 48 additions & 9 deletions

File tree

.github/dependabot.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "maven"
9+
directory: "/ams-cap-bookshop"
10+
schedule:
11+
interval: "weekly"
12+
groups:
13+
minor-patch:
14+
update-types:
15+
- "minor"
16+
- "patch"
17+
- package-ecosystem: "maven"
18+
directory: "/ams-javalin-shopping"
19+
schedule:
20+
interval: "weekly"
21+
groups:
22+
minor-patch:
23+
update-types:
24+
- "minor"
25+
- "patch"
26+
- package-ecosystem: "maven"
27+
directory: "/ams-spring-boot-shopping"
28+
schedule:
29+
interval: "weekly"
30+
groups:
31+
minor-patch:
32+
update-types:
33+
- "minor"
34+
- "patch"

.github/workflows/build_and_test_cap.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ jobs:
6969
# This job ensures the workflow passes when no relevant changes are detected
7070
# Required for PR status checks to pass when the sample hasn't changed
7171
no-changes:
72-
name: No Changes Detected
72+
name: Build and Test
7373
needs: detect-changes
74-
if: ${{ needs.detect-changes.outputs.should_run != 'true' }}
74+
if: ${{ github.event_name != 'workflow_dispatch' && needs.detect-changes.outputs.should_run != 'true' }}
7575
runs-on: ubuntu-latest
7676
steps:
7777
- name: No relevant changes detected
78-
run: echo "No relevant changes detected for ams-cap-bookshop. Skipping build and test."
78+
run: echo "No relevant changes detected for ams-cap-bookshop. Skipping build and test."

.github/workflows/build_and_test_javalin.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ jobs:
5353
# This job ensures the workflow passes when no relevant changes are detected
5454
# Required for PR status checks to pass when the sample hasn't changed
5555
no-changes:
56-
name: No Changes Detected
56+
name: Build and Test
5757
needs: detect-changes
58-
if: ${{ needs.detect-changes.outputs.should_run != 'true' }}
58+
if: ${{ github.event_name != 'workflow_dispatch' && needs.detect-changes.outputs.should_run != 'true' }}
5959
runs-on: ubuntu-latest
6060
steps:
6161
- name: No relevant changes detected
62-
run: echo "No relevant changes detected for ams-javalin-shopping. Skipping build and test."
62+
run: echo "No relevant changes detected for ams-javalin-shopping. Skipping build and test."

.github/workflows/build_and_test_spring_boot.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,15 @@ jobs:
7070
# This job ensures the workflow passes when no relevant changes are detected
7171
# Required for PR status checks to pass when the sample hasn't changed
7272
no-changes:
73-
name: No Changes Detected
73+
name: Build and Test${{ matrix.spring_boot_version && format(' (Spring Boot {0})', matrix.spring_boot_version) || '' }}
7474
needs: detect-changes
75-
if: ${{ needs.detect-changes.outputs.should_run != 'true' }}
75+
if: ${{ github.event_name != 'workflow_dispatch' && needs.detect-changes.outputs.should_run != 'true' }}
7676
runs-on: ubuntu-latest
77+
strategy:
78+
matrix:
79+
include:
80+
- spring_boot_version: ''
81+
- spring_boot_version: '4.0.2'
7782
steps:
7883
- name: No relevant changes detected
79-
run: echo "No relevant changes detected for ams-spring-boot-shopping. Skipping build and test."
84+
run: echo "No relevant changes detected for ams-spring-boot-shopping. Skipping build and test."

0 commit comments

Comments
 (0)