feat(front): route admin bulk tag edits through versioned bulkUpdate #110886
Workflow file for this run
This file contains hidden or 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: Run DangerJS | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| types: [ edited, labeled, opened, reopened, synchronize ] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| statuses: write | |
| jobs: | |
| danger-front: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| # Optimize compute resources by verifying changes in SQL models files and API files before running Danger. | |
| - name: Check for file changes | |
| id: file_changes | |
| run: | | |
| git fetch --no-tags --prune --depth=1 origin +refs/heads/main:refs/remotes/origin/main | |
| echo "Checking for changed files..." | |
| # Define monitored paths | |
| MONITORED_PATHS=( | |
| 'front/lib/' | |
| 'front/types/assistant/models/' | |
| 'front/temporal/' | |
| 'front-api/' | |
| 'connectors/src/lib/models/' | |
| 'connectors/src/resources/storage/models/' | |
| 'sdks/js/' | |
| 'front/package.json' | |
| 'front/scripts/reindex_code_defined_skills.ts' | |
| 'extension/package.json' | |
| ) | |
| PATHS_STRING="${MONITORED_PATHS[*]}" | |
| CHANGED_FILES=$(git diff --name-only origin/main ${{ github.sha }} -- "${MONITORED_PATHS[@]}") | |
| if [ -n "$CHANGED_FILES" ]; then | |
| echo "Changed files found:" | |
| echo "$CHANGED_FILES" | |
| echo "run_danger=true" >> "$GITHUB_OUTPUT" | |
| echo "::warning ::Files in ${PATHS_STRING} have been modified." | |
| else | |
| echo "No changed files found." | |
| echo "run_danger=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Setup Node Dependencies | |
| if: ${{ steps.file_changes.outputs.run_danger == 'true' }} | |
| uses: ./.github/actions/setup-node-deps | |
| with: | |
| build-sdks: "true" | |
| build-sparkle: "true" | |
| - name: Run Danger for front | |
| if: ${{ steps.file_changes.outputs.run_danger == 'true' }} | |
| run: cd front && npx danger ci | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| danger-connectors: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check for activity file changes | |
| id: file_changes | |
| run: | | |
| git fetch --no-tags --prune --depth=1 origin +refs/heads/main:refs/remotes/origin/main | |
| echo "Checking for changed activity files in connectors..." | |
| # Define monitored paths for connectors | |
| CHANGED_FILES=$(git diff --name-only origin/main ${{ github.sha }} | grep -E 'connectors/src/.*/temporal/activities\.ts$' || true) | |
| if [ -n "$CHANGED_FILES" ]; then | |
| echo "Changed activity files found:" | |
| echo "$CHANGED_FILES" | |
| echo "run_danger=true" >> "$GITHUB_OUTPUT" | |
| echo "::warning ::Activity files in connectors have been modified." | |
| else | |
| echo "No changed activity files found." | |
| echo "run_danger=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Setup Node Dependencies | |
| if: ${{ steps.file_changes.outputs.run_danger == 'true' }} | |
| uses: ./.github/actions/setup-node-deps | |
| - name: Run Danger for connectors | |
| if: ${{ steps.file_changes.outputs.run_danger == 'true' }} | |
| run: cd connectors && npx danger ci | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |