From c36bbaba69c4045aa0611e56a6ceba32e1aedeac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=84=A1=E5=B8=B8?= <3142324836@qq.com> Date: Mon, 3 Jun 2024 23:33:47 +0800 Subject: [PATCH 1/2] Remove artifacts upload from pull request --- .github/workflows/build-artifacts.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-artifacts.yml b/.github/workflows/build-artifacts.yml index ab45ab1..b5d80d5 100644 --- a/.github/workflows/build-artifacts.yml +++ b/.github/workflows/build-artifacts.yml @@ -72,6 +72,7 @@ jobs: length: 7 - name: Upload artifacts + if: github.event_name != 'pull_request' uses: actions/upload-artifact@v4 with: name: TuneLab-${{ matrix.runtime }}-${{ steps.short-sha.outputs.sha }} From 10759b3d962447ac11eb210eae550a1a198fcf07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=84=A1=E5=B8=B8?= <3142324836@qq.com> Date: Mon, 3 Jun 2024 23:38:39 +0800 Subject: [PATCH 2/2] Add unsafe artifacts for pull request actions check --- .github/workflows/build-artifacts.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build-artifacts.yml b/.github/workflows/build-artifacts.yml index b5d80d5..729d61b 100644 --- a/.github/workflows/build-artifacts.yml +++ b/.github/workflows/build-artifacts.yml @@ -78,3 +78,10 @@ jobs: name: TuneLab-${{ matrix.runtime }}-${{ steps.short-sha.outputs.sha }} path: workspace + - name: Upload artifacts (Not signed) + if: github.event_name == 'pull_request' + uses: actions/upload-artifact@v4 + with: + name: TuneLab-${{ matrix.runtime }}-${{ steps.short-sha.outputs.sha }}-Unsafe + path: workspace +