From 7d183b91d1151d5f27a83ecd6182424d1b4e9e36 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Mon, 20 Apr 2026 21:39:49 +0300 Subject: [PATCH] Run CI for pull requests --- .github/workflows/workflow.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index c314036..448bee4 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -1,12 +1,12 @@ -name: CI (main and tags) +name: CI on: + pull_request: + branches: [ "main" ] push: branches: [ "main" ] tags: [ "v*" ] permissions: - checks: write - contents: write - packages: write + contents: read pull-requests: read concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -24,6 +24,7 @@ jobs: - run: cargo clippy docker-clean-metadata: + if: github.event_name == 'push' runs-on: ubuntu-latest outputs: json: ${{ steps.meta.outputs.json }} @@ -39,6 +40,7 @@ jobs: type=semver,pattern={{raw}} docker-build: + if: github.event_name == 'push' permissions: contents: read packages: write @@ -84,6 +86,7 @@ jobs: labels: ${{ steps.meta.outputs.labels }} docker-manifest: + if: github.event_name == 'push' needs: - docker-build - docker-clean-metadata