This repository has been archived by the owner on Nov 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added CI to update gradle wrapper jar
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Update Gradle wrapper | ||
name: Update Gradle | ||
|
||
on: | ||
schedule: [{cron: "0 16 * * *"}] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Update Gradle wrapper | ||
|
||
on: | ||
schedule: [{cron: "0 17 * * *"}] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # to be able to publish a GitHub release | ||
issues: write # to be able to comment on released issues | ||
pull-requests: write # to be able to comment on released pull requests | ||
id-token: write # to enable use of OIDC | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4.1.7 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Build dependencies | ||
run: | | ||
./gradlew wrapper --gradle-version latest --distribution-type bin | ||
- name: Update library | ||
run: | | ||
git config --global user.email jarbull86@gmail.com | ||
git config --global user.name AnGgIt86 | ||
git add -f . | ||
git commit -m "Update gradle wrapper in latest version" | ||
git push |