diff --git a/.github/workflows/Build-Dist.yml b/.github/workflows/Build-Dist.yml index ae2f05be65c..b99eaff2b8e 100644 --- a/.github/workflows/Build-Dist.yml +++ b/.github/workflows/Build-Dist.yml @@ -3,11 +3,18 @@ name: Build-Dist # Run this workflow every time a new commit pushed to your repository on: push: + paths-ignore: + - '**/*.md' + pull_request: + paths-ignore: + - '**/*.md' jobs: tests: runs-on: ${{ matrix.operating-system }} + # We want to run on external PRs, but not on our own internal PRs as they'll be run by the push to the branch. + if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) # Service containers to run with `container-job` services: @@ -41,6 +48,11 @@ jobs: key: cache-v1 # can be any string, change to clear the extension cache. steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.7.0 + with: + access_token: ${{ github.token }} + # Checks out a copy of your repository on the ubuntu machine - name: Checkout code uses: actions/checkout@v2 diff --git a/.github/workflows/Build-Full-SQL.yml b/.github/workflows/Build-Full-SQL.yml index 0a5e30f1a6a..8fbebee72b3 100644 --- a/.github/workflows/Build-Full-SQL.yml +++ b/.github/workflows/Build-Full-SQL.yml @@ -3,12 +3,19 @@ name: Build-Full-SQL # Run this workflow every time a new commit pushed to your repository on: push: + paths-ignore: + - '**/*.md' + pull_request: + paths-ignore: + - '**/*.md' jobs: tests: runs-on: ${{ matrix.operating-system }} - + # We want to run on external PRs, but not on our own internal PRs as they'll be run by the push to the branch. + if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) + # Service containers to run with `container-job` services: # Label used to access the service container @@ -41,6 +48,11 @@ jobs: key: cache-v1 # can be any string, change to clear the extension cache. steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.7.0 + with: + access_token: ${{ github.token }} + # Checks out a copy of your repository on the ubuntu machine - name: Checkout code uses: actions/checkout@v2