Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fengzch-das
nunchaku
Commits
bec2927b
Commit
bec2927b
authored
Apr 11, 2025
by
muyangli
Browse files
update
parent
c3f1a922
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
.github/workflows/pr_test.yaml
.github/workflows/pr_test.yaml
+9
-2
No files found.
.github/workflows/pr_test.yaml
View file @
bec2927b
...
@@ -9,13 +9,20 @@ on:
...
@@ -9,13 +9,20 @@ on:
jobs
:
jobs
:
check-comment
:
check-comment
:
if
:
${{ github.event_name == 'issue_comment' &&
(github.event.comment.body.toLowerCase() == 'run tests' || github.event.comment.body.toLowerCase() == 'run test') &&
github.event.issue.pull_request }}
if
:
${{ github.event_name == 'issue_comment' && github.event.issue.pull_request }}
runs-on
:
self-hosted
runs-on
:
self-hosted
outputs
:
outputs
:
should_run
:
${{ steps.check.outputs.should_run }}
should_run
:
${{ steps.check.outputs.should_run }}
steps
:
steps
:
-
id
:
check
-
id
:
check
run
:
echo "should_run=true" >> $GITHUB_OUTPUT
run
:
|
body="${{ github.event.comment.body }}"
body_lower=$(echo "$body" | tr '[:upper:]' '[:lower:]')
if [[ "$body_lower" == "run tests" || "$body_lower" == "run test" ]]; then
echo "should_run=true" >> $GITHUB_OUTPUT
else
echo "should_run=false" >> $GITHUB_OUTPUT
fi
set-up-build-env
:
set-up-build-env
:
runs-on
:
self-hosted
runs-on
:
self-hosted
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment