diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f18bcdb7e..11be6341f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,6 +8,8 @@ jobs: deploy: name: Deploy runs-on: ubuntu-latest + if: github.repository == 'dask-contrib/dask-sql' + steps: - uses: actions/checkout@v2 - name: Cache local Maven repository diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index addf1e0d7..11b3433ec 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -11,6 +11,8 @@ jobs: push_to_registry: name: Push Docker image to Docker Hub runs-on: ubuntu-latest + if: github.repository == 'dask-contrib/dask-sql' + steps: - name: Check out the repo uses: actions/checkout@v2 diff --git a/.github/workflows/stylecheck.yml b/.github/workflows/stylecheck.yml index 1a56b8f69..ba114748f 100644 --- a/.github/workflows/stylecheck.yml +++ b/.github/workflows/stylecheck.yml @@ -2,6 +2,12 @@ name: Python Style Check on: [pull_request] +# When this workflow is queued, automatically cancel any previous running +# or pending jobs from the same branch +concurrency: + group: style-${{ github.head_ref }} + cancel-in-progress: true + jobs: pre-commit: runs-on: ubuntu-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 09bc1cc2e..b22b2c205 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,12 @@ on: - main pull_request: +# When this workflow is queued, automatically cancel any previous running +# or pending jobs from the same branch +concurrency: + group: test-${{ github.head_ref }} + cancel-in-progress: true + jobs: build: # This build step should be similar to the deploy build, to make sure we actually test