From 12b16afa459678762f3f24034dac5341a1aac1eb Mon Sep 17 00:00:00 2001 From: Wanderson Camargo Date: Tue, 30 Nov 2021 08:40:41 -0300 Subject: [PATCH] Create an artifact only if required --- .github/workflows/test.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8e0e9e6..dabbbd8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,9 @@ jobs: php_version: - "8.0" - "8.1" - # include: + include: + - php_version: "8.0" + artifact: true # - php_version: "8.1.0RC6" # experimental: true # composer_platform_php: "8.0" @@ -83,11 +85,11 @@ jobs: - name: Zip run: zip -r repository.zip . - if: matrix.php_version == '8.0' + if: matrix.artifact == true - name: Repository uses: actions/upload-artifact@v2 - if: matrix.php_version == '8.0' + if: matrix.artifact == true with: name: repository path: repository.zip