Skip to content

Commit

Permalink
ci: do nothing if conditions not met
Browse files Browse the repository at this point in the history
  • Loading branch information
cwsmith authored Mar 14, 2024
1 parent 0d83b20 commit c92b421
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pr_comment_trigger_self_hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ jobs:
# The type of runner that the job will run on
runs-on: self-hosted

if: ${{ github.event.issue.pull_request }}
if: >
${{ github.event.issue.pull_request }} &&
contains(github.event.comment.body, '/runtests') &&
(github.event.comment.user.login == 'cwsmith')
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
Expand All @@ -26,7 +29,6 @@ jobs:

- name: build
id: build
if: contains(github.event.comment.body, '/runtests') && (github.event.comment.user.login == 'cwsmith')
shell: bash
run: |
set +e #avoid exiting when lua modules return non-zero on 'warning' messages
Expand Down

0 comments on commit c92b421

Please sign in to comment.