Skip to content

Commit

Permalink
Create an artifact only if required
Browse files Browse the repository at this point in the history
  • Loading branch information
wandersonwhcr committed Nov 30, 2021
1 parent f950c32 commit 12b16af
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 12b16af

Please sign in to comment.