From 22803d0fd5eeb90da1688fd17dc2ca27c1b645d0 Mon Sep 17 00:00:00 2001 From: bdhimes Date: Thu, 30 Oct 2025 21:13:18 +0200 Subject: [PATCH] Stop running e2e tests on changelog branches --- .github/workflows/e2e-subtensor-tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e-subtensor-tests.yml b/.github/workflows/e2e-subtensor-tests.yml index f57b9a1f7..77568a1f4 100644 --- a/.github/workflows/e2e-subtensor-tests.yml +++ b/.github/workflows/e2e-subtensor-tests.yml @@ -27,7 +27,7 @@ jobs: find-tests: runs-on: ubuntu-latest - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} + if: ${{ github.event_name != 'pull_request' || (github.event.pull_request.draft == false && !startsWith(github.head_ref, 'changelog/')) }} outputs: test-files: ${{ steps.get-tests.outputs.test-files }} steps: @@ -43,6 +43,7 @@ jobs: pull-docker-image: runs-on: ubuntu-latest + if: ${{ github.event_name != 'pull_request' || (github.event.pull_request.draft == false && !startsWith(github.head_ref, 'changelog/')) }} steps: - name: Log in to GitHub Container Registry run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin