From 088123a5e23784c1f0f3c9d97b7e10c7b9fad86f Mon Sep 17 00:00:00 2001 From: Arie Timmerman Date: Wed, 27 Aug 2025 21:49:18 +0200 Subject: [PATCH] Workflow fix --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8786698..2c24de2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,10 @@ name: CI on: ['push', 'pull_request'] +permissions: + contents: read + packages: write + jobs: tests: runs-on: ubuntu-latest @@ -47,12 +51,13 @@ jobs: run: vendor/bin/phpunit docker: + # Only push Docker image for direct pushes to master branch + if: github.event_name == 'push' && github.ref == 'refs/heads/master' runs-on: ubuntu-latest needs: tests - if: github.event_name == 'push' || github.event_name == 'pull_request' steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Log in to the Container registry uses: docker/login-action@v3 with: