Skip to content

Commit

Permalink
feat: add sync methods
Browse files Browse the repository at this point in the history
  • Loading branch information
scopsy committed Nov 10, 2024
1 parent 07d35f4 commit 62a869a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/dev-deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,19 @@ jobs:
ignore_empty: true
ignore_missing: true
url_prefix: '~'
# https://github.com/novuhq/actions-novu-sync
- name: Sync State to Novu
uses: novuhq/actions-novu-sync@v2
with:
# The secret key used to authenticate with Novu Cloud
# To get the secret key, go to https://web.novu.co/api-keys.
# Required.
secret-key: ${{ secrets.NOVU_INTERNAL_SECRET_KEY }}

# The publicly available endpoint hosting the bridge application
# where notification entities (eg. workflows, topics) are defined.
# Required.
bridge-url: https://api.novu-staging.co/v1/api/novu

newrelic:
runs-on: ubuntu-latest
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/prod-deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,19 @@ jobs:
url: ${{ secrets.API_DOCS_BUILD_WEBHOOK }}
method: 'POST'

- name: Sync State to Novu
uses: novuhq/actions-novu-sync@v2
with:
# The secret key used to authenticate with Novu Cloud
# To get the secret key, go to https://web.novu.co/api-keys.
# Required.
secret-key: ${{ secrets.NOVU_INTERNAL_SECRET_KEY }}

# The publicly available endpoint hosting the bridge application
# where notification entities (eg. workflows, topics) are defined.
# Required.
bridge-url: https://api.novu.co/v1/api/novu

newrelic:
runs-on: ubuntu-latest
name: New Relic Deploy
Expand Down

0 comments on commit 62a869a

Please sign in to comment.