Skip to content

fix(dashboard): open agent connector dropdown at top level fixes NV-7829 #9779

fix(dashboard): open agent connector dropdown at top level fixes NV-7829

fix(dashboard): open agent connector dropdown at top level fixes NV-7829 #9779

name: Validate Submodule Sync
# This workflow validates submodule synchronization when PRs are opened/updated and when changes are pushed to main branches.
# Logic:
# 1. Triggers on PR events (open/update) and pushes to next/main/prod branches
# 2. First checks if SUBMODULES_TOKEN secret exists
# 3. If token exists, proceeds to validate submodule sync
# 4. Uses a validation script to ensure submodules are properly synchronized
on:
pull_request:
branches:
- next
- main
- prod
types:
- opened
- synchronize
push:
branches:
- next
- main
- prod
jobs:
check_submodule_token:
name: Check if submodule token exists
runs-on: ubuntu-latest
outputs:
has_token: ${{ steps.secret-check.outputs.has_token }}
steps:
- name: Check if secret exists
id: secret-check
env:
SUBMODULES_TOKEN: ${{ secrets.SUBMODULES_TOKEN }}
run: |
if [ -n "${SUBMODULES_TOKEN:-}" ]; then
echo "has_token=true" >> "$GITHUB_OUTPUT"
else
echo "has_token=false" >> "$GITHUB_OUTPUT"
fi
validate-submodule-sync:
runs-on: ubuntu-latest
needs: [check_submodule_token]
if: needs.check_submodule_token.outputs.has_token == 'true'
steps:
- name: Checkout main repository
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
with:
fetch-depth: 0
submodules: true
token: ${{ secrets.SUBMODULES_TOKEN }}
- name: Run validation script
env:
SUBMODULES_TOKEN: ${{ secrets.SUBMODULES_TOKEN }}
BASE_REF: ${{ github.base_ref }}
run: |
# Ensure the script is executable
chmod +x .github/workflows/scripts/validate-submodule-sync.sh
# Run the script with arguments
.github/workflows/scripts/validate-submodule-sync.sh "$BASE_REF"