From c35b59b1a3200d7d878b07c878175ed2e5e43171 Mon Sep 17 00:00:00 2001 From: budgidiere Date: Sat, 18 Jul 2020 11:03:26 -0500 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 051d681a..652621fa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,22 +26,22 @@ jobs: steps: - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@latest + uses: styfle/cancel-workflow-action@v0.4.1 with: access_token: ${{ github.token }} - - uses: actions/checkout@latest + - uses: actions/checkout@v2.3.1 - name: Set up JDK ${{ matrix.java }} - uses: actions/setup-java@latest + uses: actions/setup-java@v1.3.0 with: java-version: ${{ matrix.java }} - name: Pull Maven Cache - uses: actions/cache@latest + uses: actions/cache@v2 id: maven-cache with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-maven- - - uses: s4u/maven-settings-action@latest + - uses: s4u/maven-settings-action@v2.1.0 name: Use ${{ matrix.java }} as the java target with: properties: '[{"maven.compiler.target": "${{ matrix.java }}"}]' @@ -61,13 +61,13 @@ jobs: run: | ./yapfa full - name: Upload Artifact - uses: actions/upload-artifact@latest + uses: actions/upload-artifact@2.1.0 with: name: YAPFA-${{ matrix.java }}--${{ github.ref }} path: target/YAPFA-1.16.1-paperclip.jar - name: Create Release id: create_release - uses: actions/create-release@latest + uses: actions/create-release@v1.1.2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: @@ -79,7 +79,7 @@ jobs: prerelease: false - name: Upload Release Asset id: upload-release-asset - uses: actions/upload-release-asset@latest + uses: actions/upload-release-asset@v1.0.2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: