Skip to content

Commit a144c26

Browse files
committed
test
1 parent 8579536 commit a144c26

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/validate.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,28 @@ name: 'PR Review Comment'
22

33
on:
44
issue_comment:
5-
types: [created]
5+
types: [created, edited]
66

77
jobs:
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:

0 commit comments

Comments
 (0)