Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mishraomp authored Oct 25, 2024
1 parent 4d17055 commit c10361f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ on:
- completed
jobs:
notify-teams-pr:
if: ${{github.event.workflow_run.event == 'pull_request' && vars.MS_TEAMS_WEBHOOK_URI}}
if: ${{github.event.workflow_run.event == 'pull_request' && vars.MS_TEAMS_WEBHOOK_URI != null}}
runs-on: ubuntu-24.04
steps:
- uses: simbo/msteams-message-card-action@latest
if: ${{ vars.MS_TEAMS_WEBHOOK_URI }}
if: ${{ vars.MS_TEAMS_WEBHOOK_URI != null}}
with:
webhook: ${{ vars.MS_TEAMS_WEBHOOK_URI }}
title: "${{github.event.workflow_run.head_commit.message}}"
Expand All @@ -27,11 +27,11 @@ jobs:
image: ${{github.event.workflow_run.head_repository.owner.avatar_url}}
text: PR Opened
notify-teams-merged:
if: ${{github.event.workflow_run.event == 'push' && vars.MS_TEAMS_WEBHOOK_URI}}
if: ${{github.event.workflow_run.event == 'push' && vars.MS_TEAMS_WEBHOOK_URI != null}}
runs-on: ubuntu-24.04
steps:
- name: PR Number
if: ${{ vars.MS_TEAMS_WEBHOOK_URI }}
if: ${{ vars.MS_TEAMS_WEBHOOK_URI != null }}
id: pr
shell: bash
run: |
Expand All @@ -50,7 +50,7 @@ jobs:
- uses: simbo/msteams-message-card-action@latest
if: ${{ vars.MS_TEAMS_WEBHOOK_URI }}
with:
webhook: ${{ vars.MS_TEAMS_WEBHOOK_URI }}
webhook: ${{ vars.MS_TEAMS_WEBHOOK_URI != null }}
title: "${{github.event.workflow_run.head_commit.message}}"
message: "${{github.event.workflow_run.head_commit.message}}"
color: 'dark orange'
Expand Down

0 comments on commit c10361f

Please sign in to comment.