瀏覽代碼

[chore] Update pull request workflow

Does **not** fully solve our issue with snapshot builds just yet, this is just an intermediary solution
Max 4 年之前
父節點
當前提交
707408c873
共有 1 個文件被更改,包括 7 次插入6 次删除
  1. 7 6
      .github/workflows/pr.yml

+ 7 - 6
.github/workflows/snapshot.yml → .github/workflows/pr.yml

@@ -19,10 +19,11 @@ jobs:
         uses: actions/setup-java@v1
         with:
           java-version: 1.8
-      - name: Upload to Maven
-        run: ./gradlew publish --stacktrace
+      - name: Build snapshot
+        run: ./gradlew build --stacktrace
         if: |
-          !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.pull_request.title, '[ci skip]')
-        env:
-          MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
-          PR_NUM: ${{github.event.number}}
+          !contains(github.event.pull_request.title, '[ci skip]')
+      - name: Verify license integrity
+        run: ./gradlew licenseCheck
+        if: |
+          !contains(github.event.pull_request.title, '[ci skip]')