fix(linkedin): Fix endpoint for linkedin (#167) #153
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Scripts Internally | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: deploy-templates-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
template-upload: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
node-version-file: '.nvmrc' | |
- name: Install nango CLI | |
run: | | |
npm install -g nango | |
NANGO_CLI_UPGRADE_MODE=ignore nango version --debug | |
- name: Resolve Aliases | |
run: npm run resolve:aliases | |
- name: Process and deploy integrations | |
run: | | |
set +e | |
dirs=$(find integrations -maxdepth 1 -type d | tail -n +2) | |
for dir in $dirs; do | |
integration=$(basename "$dir") | |
mkdir -p "/tmp/nango-temp/nango-integrations/$integration" | |
cp "$dir/nango.yaml" /tmp/nango-temp/nango-integrations/ | |
cp -r "$dir"/* "/tmp/nango-temp/nango-integrations/$integration/" | |
cd /tmp/nango-temp/nango-integrations | |
npm install zod soap botbuilder | |
response=$(nango admin:deploy-internal template-"$integration") | |
exit_code=$? | |
echo "$response" | grep -q "unknown_provider_config" | |
if [ $? -eq 0 ]; then | |
echo "Warning: Unknown provider config for $integration" | |
cd - | |
rm -rf /tmp/nango-temp | |
continue | |
fi | |
if [ $exit_code -ne 0 ]; then | |
echo "Error in deployment for $integration: $response" | |
exit 1 | |
fi | |
echo "Deployment successful for $integration" | |
cd - | |
rm -rf /tmp/nango-temp | |
done | |
env: | |
NANGO_SECRET_KEY_DEV: ${{ secrets.NANGO_SHARED_DEV_ACCOUNT_SECRET_KEY }} |