diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cd63e1951..e3304ffa9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,11 @@ jobs: timeout-minutes: 30 steps: + - name: "Checkout repository" + uses: actions/checkout@v3.5.3 + with: + fetch-depth: 0 + - name: "Setup environment" uses: ./.github/templates/setup-environment.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d5a7c5bc7..4860e1b60 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,23 +30,11 @@ jobs: steps: - name: "Checkout repository" uses: actions/checkout@v3.5.3 - - - name: "Set up JDK" - uses: actions/setup-java@v3.12.0 with: - distribution: "temurin" - java-version: 17 - - - name: "Initialize caches" - uses: actions/cache@v3.3.1 - with: - path: | - ~/.gradle/caches - ~/.gradle/loom-cache - ~/.gradle/wrapper - key: ${{ runner.os }}-build-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-build- + fetch-depth: 0 + + - name: "Setup environment" + uses: ./.github/templates/setup-environment.yml - name: "Build with gradle" run: ./gradlew build