Skip to content

Commit e8968cc

Browse files
committed
ci: allow manual execution on the correct workflow
1 parent 71f1d70 commit e8968cc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/metadata.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ name: Fetch Addon Metadata
33
on:
44
pull_request_review:
55
types: [submitted]
6+
workflow_dispatch:
67

78
jobs:
89
metadata:
9-
if: ${{ github.event.review.state == 'approved' }}
10+
if: |
11+
github.event_name == 'workflow_dispatch' ||
12+
(github.event_name == 'pull_request_review' && github.event.review.state == 'approved')
1013
runs-on: ubuntu-latest
1114
permissions:
1215
contents: write

.github/workflows/pull_request.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
pull_request:
55
branches:
66
- main
7-
workflow_dispatch:
87

98
jobs:
109
style:

0 commit comments

Comments
 (0)