Skip to content

feat(docs): improved SEO (#DS-4376) #1892

feat(docs): improved SEO (#DS-4376)

feat(docs): improved SEO (#DS-4376) #1892

Workflow file for this run

name: Notification PR
on:
pull_request_target:
types:
- opened
permissions: {}
jobs:
notify:
name: Pull Request Notification
runs-on: ubuntu-latest
steps:
- name: Notification
if: ${{ github.actor != 'dependabot[bot]' && github.base_ref == 'main' }}
uses: mattermost/action-mattermost-notify@ae31bb6f9e26a54336e79696f108a2c91cf55b4e # v2.1.0
env:
PR_URL: https://github.com/${{ github.repository }}/pull/${{ github.event.number }}
# The webhook host serves a chain rooted in a private CA that Node does not trust, so the
# action fails with SELF_SIGNED_CERT_IN_CHAIN before the request ever leaves the runner.
# Accepting the chain unverified is a deliberate trade-off: the webhook URL then travels
# over a connection nobody authenticated. Kept on the step so it covers only this
# action's process, not everything else the job might run.
NODE_TLS_REJECT_UNAUTHORIZED: '0'
with:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }}
MATTERMOST_CHANNEL: ${{ secrets.MM_CHANNEL_NAME }}
MATTERMOST_USERNAME: ${{ secrets.MM_BOT_NAME }}
TEXT: |
[${{ github.repository }}] | [${{ github.event.pull_request.title }} #${{ github.event.number }}](${{ env.PR_URL }}) was created by ${{ github.actor }}
- name: Notification to BotChannel
uses: mattermost/action-mattermost-notify@ae31bb6f9e26a54336e79696f108a2c91cf55b4e # v2.1.0
env:
PR_URL: https://github.com/${{ github.repository }}/pull/${{ github.event.number }}
# Same untrusted chain as the step above.
NODE_TLS_REJECT_UNAUTHORIZED: '0'
with:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }}
MATTERMOST_CHANNEL: ${{ secrets.MM_CHANNEL_BOT_PR }}
MATTERMOST_USERNAME: ${{ secrets.MM_BOT_NAME }}
TEXT: |
[${{ github.repository }}] | [${{ github.event.pull_request.title }} #${{ github.event.number }}](${{ env.PR_URL }}) was created by ${{ github.actor }}