Expect files during PR checks

This commit is contained in:
Nikhil Badyal
2022-10-18 22:46:31 +05:30
parent 2fed2a2bb9
commit ba506b466d
2 changed files with 9 additions and 1 deletions
+7 -1
View File
@@ -8,6 +8,11 @@ on:
secrets: secrets:
ENVS: ENVS:
required: false required: false
inputs:
FILES_TO_EXPECT:
type: string
required: false
default: -1
jobs: jobs:
build-apk: build-apk:
@@ -28,10 +33,11 @@ jobs:
docker-compose up docker-compose up
- name: Upload Build APKS - name: Upload Build APKS
uses: actions/upload-artifact@v3.1.0 uses: nikhilbadyal/upload-artifact@count-check
with: with:
name: Built-APKs name: Built-APKs
path: | path: |
apks/*-output.apk apks/*-output.apk
apks/VancedMicroG.apk" apks/VancedMicroG.apk"
if-no-files-found: error if-no-files-found: error
files-to-expect: ${{ inputs.FILES_TO_EXPECT }}
+2
View File
@@ -14,6 +14,8 @@ jobs:
PYTHON_VERSION: '3.10' PYTHON_VERSION: '3.10'
build-apk-pr-check: build-apk-pr-check:
uses: ./.github/workflows/build-artifact.yml uses: ./.github/workflows/build-artifact.yml
with:
FILES_TO_EXPECT: 2
secrets: secrets:
ENVS: | ENVS: |
PATCH_APPS=youtube PATCH_APPS=youtube