From: Florian Zschocke Date: Wed, 26 Oct 2022 16:03:40 +0000 (+0200) Subject: ci: Update action versions in push build workflow X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=41d550d135d186dd97343467f280b8bfb1a6fa61;p=gitblit.git ci: Update action versions in push build workflow The workflow runs started issuing warnings because NodeJS 12 was deprecated. Actions need to get updated to newer versions that use NodeJS 16. This commit updates the `actions/checkout` and the `actions/setup-java` actions to the latest version in the workflow that builds on every push. The new setup-java action requires the distribution to be specified, since multiple JDK distributions are supported now. We chose Eclipse's Temurin here which is the successor to AdoptOpenJDK, which we use for development. --- diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 2bbd2af5..eab73378 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -20,14 +20,15 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v3 with: submodules: true - name: Setup Java ${{ matrix.java-version }} - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: ${{ matrix.java-version }} + distribution: 'temurin' - name: Setup Moxie run: | @@ -53,14 +54,15 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v3 with: submodules: true - name: Setup Java ${{ matrix.java-version }} - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: ${{ matrix.java-version }} + distribution: 'temurin' - name: Report Java version run: |