Commit bec2927b authored by muyangli's avatar muyangli
Browse files

update

parent c3f1a922
......@@ -9,13 +9,20 @@ on:
jobs:
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
outputs:
should_run: ${{ steps.check.outputs.should_run }}
steps:
- 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:
runs-on: self-hosted
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment