diff options
-rw-r--r-- | .github/workflows/cancel.yml | 13 | ||||
-rw-r--r-- | .github/workflows/ci.yml | 10 |
2 files changed, 14 insertions, 9 deletions
diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml new file mode 100644 index 000000000..7f1076371 --- /dev/null +++ b/.github/workflows/cancel.yml @@ -0,0 +1,13 @@ +on: [push, pull_request_target] +name: Cancel + +jobs: + cancel: + runs-on: ubuntu-latest + steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.5.0 + with: + # cancel builds from ci workflow + workflow_id: 903674 + access_token: ${{ github.token }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f8f97139..e9c217501 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,15 +1,7 @@ -on: [push, pull_request_target] +on: [push, pull_request] name: CI jobs: - cancel: - runs-on: ubuntu-latest - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.5.0 - with: - access_token: ${{ github.token }} - build: strategy: matrix: |