Skip to content

Commit

Permalink
Change filter to include pull_request_target (#2557)
Browse files Browse the repository at this point in the history
* prt

* prt
  • Loading branch information
mvpatel2000 authored Sep 21, 2023
1 parent 46fafa2 commit a438683
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest-cpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
name: coverage-${{ github.sha }}-${{ inputs.name }}
path: .coverage
- name: Notify slack fail
if: failure() && !cancelled() && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && github.event_name != 'pull_request'
if: failure() && !cancelled() && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && (github.event_name != 'pull_request' || github.event_name != 'pull_request_target')
env:
SLACK_BOT_TOKEN: ${{ secrets.slack-notifications-bot-token }}
uses: voxmedia/github-action-slack-notify-build@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest-gpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
python .github/mcli/mcli_pytest.py --image '${{ inputs.container }}' --pip_package_name '${{ inputs.composer_package_name }}' --pytest_markers '${{ inputs.pytest-markers }}' --pytest_command '${{ inputs.pytest-command }}' --timeout ${{ inputs.mcloud-timeout }} ${REF_ARGS}
- name: Notify slack fail
if: failure() && !cancelled() && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && github.event_name != 'pull_request'
if: failure() && !cancelled() && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && (github.event_name != 'pull_request' || github.event_name != 'pull_request_target')
env:
SLACK_BOT_TOKEN: ${{ secrets.slack-notifications-bot-token }}
uses: voxmedia/github-action-slack-notify-build@v1
Expand Down

0 comments on commit a438683

Please sign in to comment.