Skip to content

Commit 34476c8

Browse files
authored
Reworked GitHub Actions (#51)
* Reworked GitHub Actions * Reworked GitHub Actions
1 parent f04491a commit 34476c8

File tree

2 files changed

+36
-4
lines changed

2 files changed

+36
-4
lines changed

.github/workflows/gradle.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
2121
- name: Set up JDK 11
2222
uses: actions/setup-java@v1
2323
with:
2424
java-version: 11
25-
- name: Grant execute permission for gradlew
26-
run: chmod +x gradlew
2725
- name: Build with Gradle
28-
run: ./gradlew build
26+
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
27+
with:
28+
arguments: build
2929
env:
3030
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3131
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
7+
8+
name: Nightly checks with Gradle
9+
10+
on:
11+
workflow_dispatch:
12+
schedule:
13+
- cron: "0 0 * * *"
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
build:
20+
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Set up JDK 11
26+
uses: actions/setup-java@v1
27+
with:
28+
java-version: '11'
29+
- name: Build with Gradle
30+
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
31+
with:
32+
arguments: dependencyUpdates dependencyCheckAggregate

0 commit comments

Comments
 (0)