Skip to content

Commit

Permalink
Merge pull request #81 from ToxicStoxm/ToxicStoxm-patch-1
Browse files Browse the repository at this point in the history
Update gradle.yml
  • Loading branch information
ToxicStoxm authored Aug 12, 2024
2 parents a0d22d2 + 85d05ce commit f9761b4
Showing 1 changed file with 28 additions and 13 deletions.
41 changes: 28 additions & 13 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,42 @@ jobs:
uses: actions/setup-java@v4
with:
java-version: '22'
distribution: 'temurin'
distribution: 'oracle'

# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
#
# - name: Build with Gradle Wrapper
# run: ./gradlew build

# NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
# If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.
#
- name: Setup Gradle
uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
with:
gradle-version: '8.9'

- name: Build with Gradle 8.9
run: gradle build

generate-dependency-json:

runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@v4
- name: Set up JDK 22
uses: actions/setup-java@v4
with:
java-version: '22'
distribution: 'oracle'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
with:
gradle-version: '8.9'

- name: Get dependencies with Gradle 8.9 & flatpak-gradle-generator plugin by jwharm
run: gradle flatpakGradleGenerator

- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit-message: "Update flatpak-sources.json"

dependency-submission:

runs-on: ubuntu-latest
Expand All @@ -59,7 +74,7 @@ jobs:
uses: actions/setup-java@v4
with:
java-version: '22'
distribution: 'temurin'
distribution: 'oracle'

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

0 comments on commit f9761b4

Please sign in to comment.