diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eaddf17d..97614353 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,10 +14,8 @@ on: - 'docs/**' - 'debian/**' - 'docker/**' - - 'test_results/**' branches: - main - - dev # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -138,7 +136,7 @@ jobs: name: Build runs-on: ubuntu-latest needs: tests - if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' + if: github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.draft == false) strategy: matrix: include: @@ -223,7 +221,7 @@ jobs: name: Docker publish runs-on: ubuntu-latest needs: build - if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && github.event_name != 'pull_request' + if: github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.draft == false) env: DOCKER_ARM64: docker.io/${{ github.repository }}:${{ github.ref_name }}-${{ github.sha }}-arm64v8 DOCKER_AMD64: docker.io/${{ github.repository }}:${{ github.ref_name }}-${{ github.sha }}-amd64