From 19362476ef7c1adfc69067960da2d71c216ffd9a Mon Sep 17 00:00:00 2001 From: LamGC Date: Wed, 22 Jun 2022 01:53:16 +0800 Subject: [PATCH] =?UTF-8?q?build(action):=20=E4=BF=AE=E5=A4=8D=20gradlew?= =?UTF-8?q?=20=E6=97=A0=E6=9D=83=E9=99=90=E7=9A=84=E9=97=AE=E9=A2=98.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 由于 gradlew 并未自动获得执行权限, 所以 Action 执行 gradlew 时会失败, 已在执行前设置执行权限, 希望管用. --- .github/workflows/build-and-test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index c87e75f..2954131 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -25,6 +25,8 @@ jobs: java-version: '11' distribution: 'adopt-hotspot' cache: 'gradle' + - name: Grant execute permission for gradlew + run: chmod +x gradlew - name: Build and test uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 with: