Skip to content

Commit 7da4729

Browse files
committed
ci.yml: Add !repro command
1 parent 3b4a192 commit 7da4729

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ci.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
- config/**
1515
- .*
1616
- README.md
17-
# For config-pr-2-confirm.yml
17+
# For config-pr-2-confirm.yml and !repro command
1818
issue_comment:
1919
types:
2020
- created
@@ -103,9 +103,17 @@ jobs:
103103
contents: write # For updating metadata.yaml version and committing checksums
104104
pull-requests: write # For commenting on PR
105105

106+
pr-comment-repro:
107+
name: Comment Repro
108+
if: github.event_name == 'issue_comment' && github.event.issue.pull_request && startsWith(github.event.comment.body, '!repro')
109+
uses: access-nri/model-config-tests/.github/workflows/config-comment-repro.yml
110+
permissions:
111+
contents: write
112+
pull-requests: write
113+
106114
pr-comment-docs:
107115
name: Comment Docs
108-
if: github.event_name == 'issue_comment' && github.event.comment.body == '!update_docs' && github.repository != 'ACCESS-NRI/model-configs-template'
116+
if: github.event_name == 'issue_comment' && github.event.comment.body == '!update_docs'
109117
runs-on: ubuntu-latest
110118
env:
111119
ARTIFACT_LOCAL_LOCATION: /opt/artifact

0 commit comments

Comments
 (0)