Skip to content

Commit 5697bbf

Browse files
committed
dev: define workflows
1 parent 7b85b7a commit 5697bbf

2 files changed

Lines changed: 38 additions & 23 deletions

File tree

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
66
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
77

8-
name: Java CI with Gradle
8+
name: Build Java
99

1010
on:
1111
push:
@@ -22,9 +22,9 @@ jobs:
2222
contents: read
2323

2424
steps:
25-
- uses: actions/checkout@v4
26-
- name: Set up JDK
27-
uses: actions/setup-java@v4
25+
- uses: actions/checkout@v6
26+
- name: Set up Java
27+
uses: actions/setup-java@v5
2828
with:
2929
java-version: '21'
3030
distribution: 'temurin'
@@ -47,22 +47,3 @@ jobs:
4747
#
4848
# - name: Build with Gradle
4949
# run: gradle build
50-
51-
dependency-submission:
52-
53-
runs-on: ubuntu-latest
54-
permissions:
55-
contents: write
56-
57-
steps:
58-
- uses: actions/checkout@v4
59-
- name: Set up JDK
60-
uses: actions/setup-java@v4
61-
with:
62-
java-version: '21'
63-
distribution: 'temurin'
64-
65-
# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
66-
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
67-
- name: Generate and submit dependency graph
68-
uses: gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7+
8+
name: Dependency Submission
9+
10+
on:
11+
push:
12+
branches: [ "main" ]
13+
workflow_dispatch:
14+
15+
jobs:
16+
dependency-submission:
17+
18+
runs-on: ubuntu-22.04
19+
permissions:
20+
contents: write
21+
22+
steps:
23+
- name: Checkout sources
24+
- uses: actions/checkout@v4
25+
- name: Set up Java
26+
uses: actions/setup-java@v4
27+
with:
28+
java-version: '21'
29+
distribution: 'temurin'
30+
31+
# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
32+
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
33+
- name: Generate and submit dependency graph
34+
uses: gradle/actions/dependency-submission@v6

0 commit comments

Comments
 (0)