diff --git a/.github/workflows/reusable-workflow-for-ci.yml b/.github/workflows/reusable-workflow-for-ci.yml index a27297c..3080aac 100644 --- a/.github/workflows/reusable-workflow-for-ci.yml +++ b/.github/workflows/reusable-workflow-for-ci.yml @@ -1,6 +1,9 @@ name: CI Workflow description: A reusable workflow for continuous integration tasks on: workflow_call +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: CI: runs-on: ubuntu-latest diff --git a/.github/workflows/workflow-ci.yml b/.github/workflows/workflow-ci.yml index cc0dc0d..84675ea 100644 --- a/.github/workflows/workflow-ci.yml +++ b/.github/workflows/workflow-ci.yml @@ -1,8 +1,8 @@ name: Workflow CI -description: A workflow that calls reusable and composite workflows. +description: A workflow that calls reusable and composite workflows permissions: contents: read -on: [push] +on: [pull_request] jobs: call-reusable-workflow: uses: ./.github/workflows/reusable-workflow-for-ci.yml