Skip to content

Commit 121a891

Browse files
rafissBuonOmo
authored andcommitted
workflows: only trigger on pull_request
Previously the action would be executed twice, once by a push event and once by a pull_request event.
1 parent b4bf6cb commit 121a891

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44
name: Test
55

66
on:
7-
# Triggers the workflow on push or pull request events.
8-
push:
9-
# This should disable running the workflow on tags, according to the
10-
# on.<push|pull_request>.<branches|tags> GitHub Actions docs.
11-
branches:
12-
- "*"
7+
# Triggers the workflow on pull request events.
138
pull_request:
149
types: [opened, reopened, synchronize]
1510

@@ -18,7 +13,7 @@ on:
1813

1914
# This allows a subsequently queued workflow run to interrupt previous runs.
2015
concurrency:
21-
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
16+
group: "${{ github.workflow }} @ ${{ github.ref }}"
2217
cancel-in-progress: true
2318

2419
jobs:

0 commit comments

Comments
 (0)