Skip to content

Merge pull request #43 from playmoweb/add-webhook-url #2

Merge pull request #43 from playmoweb/add-webhook-url

Merge pull request #43 from playmoweb/add-webhook-url #2

Workflow file for this run

name: Notify

Check failure on line 1 in .github/workflows/notify.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/notify.yml

Invalid workflow file

`pull_request_comment` is not a valid event name
on:
pull_request:
types: [opened]
issues:
types: [opened]
pull_request_comment:
jobs:
integration_test_incoming_webhook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- run: echo "${{ github.event_name }}"
- name: Notify slack on pull request
if: ${{ github.event_name == 'pull_request' }}
id: slackIncoming
uses: ./
payload: "{\"text\":\"New pull request on repository ${{ github.repository }}: ${{ github.server_url }}/${{ github.repository }}/pull/${{ github.event.number }}\"}"
env:
SLACK_WEBHOOK_URL: ${{ vars.SLACK_INCOMING_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
- name: Notify slack on issue
if: ${{ github.event_name == 'issues' }}
id: slackIncoming
uses: ./
payload: "{\"text\":\"New issue on repository ${{ github.repository }}: ${{ github.server_url }}/${{ github.repository }}/issues/${{ github.event.number }}\"}"
env:
SLACK_WEBHOOK_URL: ${{ vars.SLACK_INCOMING_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
- name: Notify slack on pull request comment
if: ${{ github.event_name == 'pull_request_comment' }}
id: slackIncoming
uses: ./
payload: "{\"text\":\"New comment on repository ${{ github.repository }}: ${{ github.server_url }}/${{ github.repository }}/issues/${{ github.event.number }}\"}"
env:
SLACK_WEBHOOK_URL: ${{ vars.SLACK_INCOMING_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK