Skip to content

Commit a38c8c5

Browse files
committed
Limit workflow triggers to relevant file changes
Switch deploy workflow to release trigger and add path filters to asset update workflow so it only runs when assets or readme change.
1 parent 7f1c6c1 commit a38c8c5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Deploy to WordPress.org
22

33
on:
4-
push:
5-
tags:
6-
- '*'
4+
release:
5+
types: [released]
76

87
jobs:
98
tag:

.github/workflows/update-assets.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches:
66
- trunk
7+
paths:
8+
- '.wordpress-org/**'
9+
- 'readme.md'
10+
- '.github/workflows/update-assets.yml'
711

812
jobs:
913
trunk:

0 commit comments

Comments
 (0)