Skip to content

Commit 9341ea3

Browse files
Merge pull request #54 from christianncode/feature/AddConcurrencyField
Feature/add concurrency field
2 parents 0afb7c5 + 81958e8 commit 9341ea3

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/reusable-workflow-for-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: CI Workflow
22
description: A reusable workflow for continuous integration tasks
33
on: workflow_call
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.ref }}
6+
cancel-in-progress: true
47
jobs:
58
CI:
69
runs-on: ubuntu-latest

.github/workflows/workflow-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Workflow CI
2-
description: A workflow that calls reusable and composite workflows.
2+
description: A workflow that calls reusable and composite workflows
33
permissions:
44
contents: read
5-
on: [push]
5+
on: [pull_request]
66
jobs:
77
call-reusable-workflow:
88
uses: ./.github/workflows/reusable-workflow-for-ci.yml

0 commit comments

Comments
 (0)