From ba506b466db754cc9aa9593bd8fd4ece8955f463 Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Tue, 18 Oct 2022 22:46:31 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Expect=20files=20during=20PR=20chec?= =?UTF-8?q?ks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-artifact.yml | 8 +++++++- .github/workflows/pr-checks.yml | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-artifact.yml b/.github/workflows/build-artifact.yml index bf18a1b..857e0eb 100644 --- a/.github/workflows/build-artifact.yml +++ b/.github/workflows/build-artifact.yml @@ -8,6 +8,11 @@ on: secrets: ENVS: required: false + inputs: + FILES_TO_EXPECT: + type: string + required: false + default: -1 jobs: build-apk: @@ -28,10 +33,11 @@ jobs: docker-compose up - name: Upload Build APKS - uses: actions/upload-artifact@v3.1.0 + uses: nikhilbadyal/upload-artifact@count-check with: name: Built-APKs path: | apks/*-output.apk apks/VancedMicroG.apk" if-no-files-found: error + files-to-expect: ${{ inputs.FILES_TO_EXPECT }} diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 49291a0..d749f31 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -14,6 +14,8 @@ jobs: PYTHON_VERSION: '3.10' build-apk-pr-check: uses: ./.github/workflows/build-artifact.yml + with: + FILES_TO_EXPECT: 2 secrets: ENVS: | PATCH_APPS=youtube