Skip to content

Commit 12fb10d

Browse files
committed
Trigger workflow on merged pull requests
1 parent f9c40b1 commit 12fb10d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/namespace_declarations.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ name: namespace_declarations
2121

2222
# Workflow triggers:
2323
on:
24-
push:
24+
pull_request:
2525
branches:
2626
- develop
27+
types:
28+
- closed
2729
paths:
2830
# List paths for which changes should trigger this workflow:
2931
- 'lib/**/types/index.d.ts'
@@ -40,6 +42,9 @@ jobs:
4042
# Define a display name:
4143
name: 'Update TypeScript Declarations'
4244

45+
# Only run this job if the pull request was merged:
46+
if: github.event.pull_request.merged == true
47+
4348
# Define the type of virtual host machine:
4449
runs-on: ubuntu-latest
4550

0 commit comments

Comments
 (0)