N
Novu2w ago
ahmed

Github action sync issue

Hello there ! When I try to push my code first workflows to production env using github action I have 400 error with no message. I need to sync 2 apps which re created in 2 different organizations in novu cloud. I checked the secret keys and I don't think the problem is an authentication issue
name: Sync novu workflows

on:
workflow_dispatch:

env:
APP1_BRIDGE_URL: https:***
APP2_BRIDGE_URL: https:***

jobs:
sync-novu:
runs-on: ubuntu-latest
strategy:
matrix:
package-name: ['APP1', 'APP2']
steps:
- name: Sync novu workflows
uses: novuhq/actions-novu-sync@v2
with:
secret-key: ${{ secrets[format('{0}_SECRET_KEY', matrix.package-name)] }}
bridge-url: ${{ env[format('{0}_BRIDGE_URL', matrix.package-name)] }}
api-url: https://api.novu.co
name: Sync novu workflows

on:
workflow_dispatch:

env:
APP1_BRIDGE_URL: https:***
APP2_BRIDGE_URL: https:***

jobs:
sync-novu:
runs-on: ubuntu-latest
strategy:
matrix:
package-name: ['APP1', 'APP2']
steps:
- name: Sync novu workflows
uses: novuhq/actions-novu-sync@v2
with:
secret-key: ${{ secrets[format('{0}_SECRET_KEY', matrix.package-name)] }}
bridge-url: ${{ env[format('{0}_BRIDGE_URL', matrix.package-name)] }}
api-url: https://api.novu.co
6 Replies
Pawan Jain
Pawan Jain2w ago
@ahmed Can you please check if you have the same secret key in env variable which is used in this github action file. If that is correct. Can you please share the environmentId , organization name and error message (if any) to [email protected]?
ahmed
ahmedOP2w ago
Hello @Pawan Jain ! Thanks for the quick reply. I have 2 different secret keys. One for each app / organization. And I am using github secrets to inject them in the action. Should I add other variable ?
Pawan Jain
Pawan Jain2w ago
env[format('{0}_BRIDGE_URL and secrets[format('{0}_SECRET_KEY should be correct I want to make sure it is not interchanged
ahmed
ahmedOP2w ago
no no I checked twice and I have different keys for each app
Pawan Jain
Pawan Jain2w ago
Okay, Could you please share envid , organization name to [email protected] ?
ahmed
ahmedOP2w ago
yes. I'll send these info now. Thank you 🙏 I just sent an email with all the info. Thanks in advance @Pawan Jain
Want results from more Discord servers?
Add your server