Skip to content

Commit 3ee71d9

Browse files
committed
Add scheduled job
1 parent 87bd1e0 commit 3ee71d9

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed

.github/workflows/gradle-daily.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Weekly Gradle Build
2+
3+
on:
4+
# Every Sunday at midnight UTC
5+
schedule:
6+
- cron: "0 0 * * 0"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
ref: master
17+
18+
- name: Set up JDK 17
19+
uses: actions/setup-java@v4
20+
with:
21+
java-version: "17"
22+
distribution: "temurin"
23+
24+
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
25+
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
26+
- name: Setup Gradle
27+
uses: gradle/actions/[email protected]
28+
29+
- name: Build with Gradle Wrapper
30+
run: ./gradlew build

.github/workflows/gradle.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
- name: Set up JDK 17
1818
uses: actions/setup-java@v4
1919
with:
20-
java-version: '17'
21-
distribution: 'temurin'
20+
java-version: "17"
21+
distribution: "temurin"
2222

2323
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
2424
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
@@ -38,8 +38,8 @@ jobs:
3838
- name: Set up JDK 17
3939
uses: actions/setup-java@v4
4040
with:
41-
java-version: '17'
42-
distribution: 'temurin'
41+
java-version: "17"
42+
distribution: "temurin"
4343

4444
# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
4545
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md

0 commit comments

Comments
 (0)