From e100cba2ba45f7e6e3a002524100c05023d256e2 Mon Sep 17 00:00:00 2001 From: Cheng Pan Date: Tue, 7 Dec 2021 18:24:00 +0800 Subject: [PATCH] [KYUUBI #1521] [BUILD] Migrate to actions/cache@v2 ### _Why are the changes needed?_ https://github.com/actions/cache https://github.com/actions/cache/releases/tag/v2.0.0 ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.readthedocs.io/en/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #1521 from pan3793/ga-cache. Closes #1521 87cad572 [Cheng Pan] Migrate to actions/cache@v2 Authored-by: Cheng Pan Signed-off-by: ulysses-you --- .github/workflows/master.yml | 16 ++++++++-------- .github/workflows/nightly.yml | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 7323715da..2820f226f 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -67,25 +67,25 @@ jobs: with: distribution: zulu java-version: ${{ matrix.java }} - - uses: actions/cache@v1 + - uses: actions/cache@v2 with: path: ~/.m2/repository/com key: ${{ runner.os }}-maven-com-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven-com- - - uses: actions/cache@v1 + - uses: actions/cache@v2 with: path: ~/.m2/repository/org key: ${{ runner.os }}-maven-org-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven-org- - - uses: actions/cache@v1 + - uses: actions/cache@v2 with: path: ~/.m2/repository/net key: ${{ runner.os }}-maven-net-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven-net- - - uses: actions/cache@v1 + - uses: actions/cache@v2 with: path: ~/.m2/repository/io key: ${{ runner.os }}-maven-io-${{ hashFiles('**/pom.xml') }} @@ -125,25 +125,25 @@ jobs: with: distribution: zulu java-version: 8 - - uses: actions/cache@v1 + - uses: actions/cache@v2 with: path: ~/.m2/repository/com key: ${{ runner.os }}-maven-com-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven-com- - - uses: actions/cache@v1 + - uses: actions/cache@v2 with: path: ~/.m2/repository/org key: ${{ runner.os }}-maven-org-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven-org- - - uses: actions/cache@v1 + - uses: actions/cache@v2 with: path: ~/.m2/repository/net key: ${{ runner.os }}-maven-net-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven-net- - - uses: actions/cache@v1 + - uses: actions/cache@v2 with: path: ~/.m2/repository/io key: ${{ runner.os }}-maven-io-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 8b4af17c3..501d93425 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -21,25 +21,25 @@ jobs: with: distribution: zulu java-version: 8 - - uses: actions/cache@v1 + - uses: actions/cache@v2 with: path: ~/.m2/repository/com key: ${{ runner.os }}-maven-com-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven-com- - - uses: actions/cache@v1 + - uses: actions/cache@v2 with: path: ~/.m2/repository/org key: ${{ runner.os }}-maven-org-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven-org- - - uses: actions/cache@v1 + - uses: actions/cache@v2 with: path: ~/.m2/repository/net key: ${{ runner.os }}-maven-net-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven-net- - - uses: actions/cache@v1 + - uses: actions/cache@v2 with: path: ~/.m2/repository/io key: ${{ runner.os }}-maven-io-${{ hashFiles('**/pom.xml') }}