diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f7b4e75..511f137 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,30 +22,30 @@ jobs: os: [ 'ubuntu-20.04'] steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: lfs: true - name: Cache gradle dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle') }} restore-keys: | ${{ runner.os }}-gradle-caches- - name: Cache gradle wrapper - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.gradle/wrapper key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} - name: Setup java - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: ${{ matrix.java }} - name: Build with gradle run: ./gradlew build - name: Upload test results if: ${{ failure() }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: path: build/reports/junit name: Test Report diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4907704..edf1309 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Prepare branch run: | git config user.name github-actions @@ -42,7 +42,7 @@ jobs: os: [ 'ubuntu-20.04'] steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: lfs: true - name: Checkout branch (Windows) @@ -60,7 +60,7 @@ jobs: git fetch git checkout -b workflow-$GITHUB_RUN_ID origin/workflow-$GITHUB_RUN_ID~1 - name: Setup java - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: ${{ matrix.java }} - name: Build with gradle @@ -73,7 +73,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: token: ${{ secrets.RELEASE_GITHUB_TOKEN }} - name: Release branch @@ -92,10 +92,10 @@ jobs: name: Publish Maven if: ${{ !contains(github.event.head_commit.message, '[skip-ci]') }} needs: release - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Checkout branch run: | git config user.name github-actions @@ -103,7 +103,7 @@ jobs: git fetch git checkout -b workflow-$GITHUB_RUN_ID origin/workflow-$GITHUB_RUN_ID~1 - name: Setup java - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 11 - name: Publish jars @@ -119,10 +119,10 @@ jobs: name: Cleanup if: ${{ always() && !contains(github.event.head_commit.message, '[skip-ci]') }} needs: publish - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Cleanup run: | git config user.name github-actions