Skip to content

Commit

Permalink
Use setup-gradle@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
d-gregorczyk committed Aug 9, 2024
1 parent 8700ae0 commit 8725aca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/feature-review-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ jobs:
ruby-version: '3.0' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- name: Setup gradle
uses: gradle/actions/setup-gradle@v4

- name: Create HTML with Gradle
uses: gradle/actions/setup-gradle@v3
with:
arguments: run --args="--input-file ../../asciidoc/sdpi-supplement.adoc --output-folder ../../sdpi-supplement --github-token ${{ secrets.SDPI_API_ACCESS_TOKEN_SECRET }} --backend html"
build-root-directory: .ci/asciidoc-converter
run: ./gradlew build --args="--input-file ../../asciidoc/sdpi-supplement.adoc --output-folder ../../sdpi-supplement --github-token ${{ secrets.SDPI_API_ACCESS_TOKEN_SECRET }} --backend html"
working-directory: .ci/asciidoc-converter

- name: Generate PlantUML diagrams and copy images
run: .github/copy_images.sh
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/latest-master-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ jobs:
ruby-version: '3.0' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- name: Setup gradle
uses: gradle/actions/setup-gradle@v4

- name: Create HTML with Gradle
uses: gradle/actions/setup-gradle@v3
with:
arguments: run --args="--input-file ../../asciidoc/sdpi-supplement.adoc --output-folder ../../sdpi-supplement --github-token ${{ secrets.SDPI_API_ACCESS_TOKEN_SECRET }} --backend html"
build-root-directory: .ci/asciidoc-converter
run: ./gradlew build --args="--input-file ../../asciidoc/sdpi-supplement.adoc --output-folder ../../sdpi-supplement --github-token ${{ secrets.SDPI_API_ACCESS_TOKEN_SECRET }} --backend html"
working-directory: .ci/asciidoc-converter

- name: Generate PlantUML diagrams and copy images
run: .github/copy_images.sh
Expand Down

0 comments on commit 8725aca

Please sign in to comment.