Skip to content

Commit

Permalink
Update GitHub Action for Gradle setup
Browse files Browse the repository at this point in the history
The GitHub Action workflow for Gradle has been updated. Initially, the workflow was incorrectly executing the Gradle package task. Now, it has been modified to first set up Gradle using an official Gradle setup action before running the Gradle build task.
  • Loading branch information
nawaphonOHM committed May 19, 2024
1 parent 3dd8e0b commit 54abe70
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ jobs:
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v3

- name: Run the Gradle package task
- name: Setup gradle
uses: gradle/actions/setup-gradle@v3
with:
arguments: build

- name: Run the Gradle package task
run: ./gradlew build

- name: Upload private_table_per_service@customer_service
uses: actions/upload-artifact@v4
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/request-merge-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ jobs:
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v3

- name: Run the Gradle package task
- name: Setup gradle
uses: gradle/actions/setup-gradle@v3
with:
arguments: build

- name: Run the Gradle package task
run: ./gradlew build

0 comments on commit 54abe70

Please sign in to comment.