From 1df042c77d80b1c6f9624184e8800f448682e053 Mon Sep 17 00:00:00 2001 From: Volodymyr Stolyarchuk Date: Tue, 15 Jul 2025 18:07:20 +0300 Subject: [PATCH] ci: generate badge on push to main --- .github/workflows/default.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/default.yaml b/.github/workflows/default.yaml index c7cc8d0..d225825 100644 --- a/.github/workflows/default.yaml +++ b/.github/workflows/default.yaml @@ -47,7 +47,7 @@ jobs: - name: Execute PHPUnit tests id: phpunit run: | - if [ "${{ matrix.php-versions }}" = "8.3" && "${{github.ref}}" == "refs/heads/main" && "${{github.event_name}}" == "push" ]; then + if [[ "${{ matrix.php-versions }}" == "8.3" && "${{ github.ref }}" == "refs/heads/main" && "${{ github.event_name }}" == "push" ]]; then vendor/bin/phpunit --coverage-clover coverage.xml echo "generate-coverage-badge=true" >> $GITHUB_OUTPUT else @@ -83,4 +83,4 @@ jobs: publish_branch: image-data github_token: ${{ secrets.GITHUB_TOKEN }} user_name: 'github-actions[bot]' - user_email: 'github-actions[bot]@users.noreply.github.com' \ No newline at end of file + user_email: 'github-actions[bot]@users.noreply.github.com'