This is an automated email from the ASF dual-hosted git repository.

jinterrante pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil.git


The following commit(s) were added to refs/heads/main by this push:
     new b2c6971af Bump actions/setup-java from 3.1.1 to 3.2.0
b2c6971af is described below

commit b2c6971af55b419baa77f3fb95b693ec22a1efb2
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Thu Apr 28 08:43:21 2022 -0400

    Bump actions/setup-java from 3.1.1 to 3.2.0
    
    Bumps [actions/setup-java](https://github.com/actions/setup-java) from 
3.1.1 to 3.2.0.
    - [Release notes](https://github.com/actions/setup-java/releases)
    - [Commits](https://github.com/actions/setup-java/compare/v3.1.1...v3.2.0)
    
    ---
    updated-dependencies:
    - dependency-name: actions/setup-java
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    - Set `cache: sbt` settting to enable dependency caching
    - Move checkout to before setup-java, needed for cache: sbt to work
    
    Signed-off-by: dependabot[bot] <[email protected]>
---
 .github/workflows/main.yml | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index cd9239282..58d10b729 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -101,11 +101,18 @@ jobs:
           echo "COURSIER_CACHE=$temp" >> $GITHUB_ENV
           echo "COURSIER_CONFIG_DIR=$temp" >> $GITHUB_ENV
 
+      - name: Check out Repository
+        uses: actions/[email protected]
+        # Disabling shallow clone is recommended for improving reporting
+        with:
+          fetch-depth: 0
+
       - name: Setup Java
-        uses: actions/[email protected]
+        uses: actions/[email protected]
         with:
           distribution: ${{ matrix.distribution }}
           java-version: ${{ matrix.java_version }}
+          cache: sbt
 
       # Cache Action - tried on 2021-06-28, removed because it didn't help
       # 1. Tried coursier/cache-action but Apache didn't allow it
@@ -113,12 +120,6 @@ jobs:
       # 2. Tried actions/cache but it didn't speed up CI at all
       #    path: ~/.cache/coursier ~/.ivy2/cache ~/.sbt 
 
-      - name: Check out Repository
-        uses: actions/[email protected]
-        # Disabling shallow clone is recommended for improving reporting
-        with:
-          fetch-depth: 0
-
       ############################################################
       # Build & Package
       ############################################################

Reply via email to