File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -2,20 +2,28 @@ name: 'PR Review Comment'
22
33on :
44 issue_comment :
5- types : [created]
5+ types : [created, edited ]
66
77jobs :
8- deploy :
8+ validate :
99 runs-on : ubuntu-latest
10- if : github.event.issue.pull_request && contains(github.event.comment.body, '/deploy' )
10+ if : github.event.issue.pull_request && ( contains(github.event.comment.body, '/quick-validation') || contains(github.event.comment.body, '/full-validation') )
1111 steps :
1212 - name : Checkout
1313 uses : actions/checkout@v3
1414
15- - name : Deploy
15+ - name : Validate
1616 run : |
17- echo "Deploying..."
18-
17+ if [[ "${{ github.event.comment.body }}" == *"/quick-validation"* ]]; then
18+ echo "Running Quick Validation..."
19+ # Add your quick validation commands here
20+ elif [[ "${{ github.event.comment.body }}" == *"/full-validation"* ]]; then
21+ echo "Running Full Validation..."
22+ # Add your full validation commands here
23+ else
24+ echo "No matching validation type found."
25+ exit 1
26+ fi
1927# name: Validate and Run Commands Based on PR Labels
2028
2129# on:
You can’t perform that action at this time.
0 commit comments