mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 18:26:15 +01:00
293988b5b6
* ci(github): update actions that use node v12 See https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/ * update actions for node 12 -> node 16 * update actions for node 12 -> node 16
43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
name: Notify Sentry and Slack
|
|
|
|
#
|
|
# Comment the `on:` section below if you want to stop deploys
|
|
#
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
slack:
|
|
name: Notify Slack of start of deploy
|
|
runs-on: ubuntu-20.04
|
|
if: github.repository == 'posthog/posthog'
|
|
steps:
|
|
- name: Notify Platform team on slack
|
|
uses: rtCamp/action-slack-notify@v2
|
|
env:
|
|
SLACK_CHANNEL: platform-bots
|
|
SLACK_COLOR: ${{ job.status }} # or a specific color like 'good' or '#ff00ff'
|
|
SLACK_ICON: https://github.com/posthog.png?size=48
|
|
SLACK_MESSAGE: 'Production Cloud Deploy Beginning :rocket: - ${{ github.event.head_commit.message }}'
|
|
SLACK_TITLE: Message
|
|
SLACK_USERNAME: Max Hedgehog
|
|
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
|
|
|
sentry:
|
|
name: Notify Sentry of a production release
|
|
runs-on: ubuntu-20.04
|
|
if: github.repository == 'PostHog/posthog'
|
|
steps:
|
|
- name: Checkout master
|
|
uses: actions/checkout@v3
|
|
- name: Notify Sentry
|
|
uses: getsentry/action-release@v1
|
|
env:
|
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
|
SENTRY_ORG: posthog
|
|
SENTRY_PROJECT: posthog
|
|
with:
|
|
environment: production
|