Skip to content

Commit 207f1c0

Browse files
committed
Trigger workflow on merged pull request
1 parent 12fb10d commit 207f1c0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/markdown_tocs.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ name: markdown_tocs
2121

2222
# Workflow triggers:
2323
on:
24+
pull_request:
25+
branches:
26+
- develop
27+
types:
28+
- closed
29+
2430
# Allow the workflow to be manually run:
2531
workflow_dispatch:
2632

@@ -33,6 +39,9 @@ jobs:
3339
# Define a display name:
3440
name: 'Update namespace ToCs'
3541

42+
# Only run this job if the pull request was merged:
43+
if: github.event.pull_request.merged == true
44+
3645
# Define the type of virtual host machine:
3746
runs-on: ubuntu-latest
3847

0 commit comments

Comments
 (0)