Skip to content

Commit

Permalink
change ci to include smoke_test commit message trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
nick authored and nick committed Nov 7, 2023
1 parent c10ba3c commit a0d02ae
Showing 1 changed file with 9 additions and 22 deletions.
31 changes: 9 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
on: issue_comment
name: Smoke tests
on: push

jobs:
pr_commented:
# This job only runs for pull request comments
name: PR comment
if: ${{ github.event.issue.pull_request }}
runs-on: ubuntu-latest
steps:
- run: |
echo A comment on PR $NUMBER
env:
NUMBER: ${{ github.event.issue.number }}
issue_commented:
# This job only runs for issue comments
name: Issue comment
if: ${{ !github.event.issue.pull_request }}
runs-on: ubuntu-latest
steps:
- run: |
echo A comment on issue $NUMBER
env:
NUMBER: ${{ github.event.issue.number }}
test:
runs-on: [ ubuntu-latest ]
steps:
- name: Run smoke tests
if: contains(github.event.head_commit.message, 'smoke_test')
run: |
echo 'Running smoke tests!'

0 comments on commit a0d02ae

Please sign in to comment.