From 2472c7c47a8eb61ac2b50a58b252141047b3831e Mon Sep 17 00:00:00 2001 From: strawberry Date: Sun, 5 May 2024 00:01:14 -0400 Subject: [PATCH] ci: don't run on `dev` anymore, run on main and non-draft PRs Signed-off-by: strawberry --- .github/workflows/ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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