feat(DATAGO-88888): Add SQL Analytics DB Tool with PII detection #225
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: CI | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| paths-ignore: | |
| - ".github/**" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| label-pr: | |
| runs-on: ubuntu-24.04 | |
| outputs: | |
| all_plugins: ${{ steps.format-labels.outputs.all-plugins }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Lable PR based on changes | |
| id: label-pr | |
| if: ${{ github.event_name == 'pull_request' }} | |
| uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| sync-labels: true | |
| configuration-path: .github/pr_labeler.yaml | |
| - name: Format labels for matrix | |
| id: format-labels | |
| run: | | |
| # Debug output | |
| echo "Raw labels: ${{ steps.label-pr.outputs.all-labels }}" | |
| # Convert comma-separated list to JSON array of objects using pure bash | |
| LABELS="${{ steps.label-pr.outputs.all-labels }}" | |
| JSON="[" | |
| FIRST=true | |
| IFS=',' read -ra LABEL_ARRAY <<< "$LABELS" | |
| for label in "${LABEL_ARRAY[@]}"; do | |
| if [ "$FIRST" = true ] ; then | |
| FIRST=false | |
| else | |
| JSON="$JSON," | |
| fi | |
| JSON="$JSON{\"plugin_directory\":\"$label\"}" | |
| done | |
| JSON="$JSON]" | |
| echo "Generated JSON: $JSON" | |
| echo "all-plugins=$JSON" >> $GITHUB_OUTPUT | |
| builds: | |
| needs: label-pr | |
| if: ${{ needs.label-pr.outputs.all_plugins != '[]' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: ${{ fromJSON(needs.label-pr.outputs.all_plugins) }} | |
| name: Build Plugin - ${{matrix.plugin_directory}} | |
| uses: ./.github/workflows/build-plugin.yaml | |
| with: | |
| plugin_directory: ${{matrix.plugin_directory}} | |
| secrets: | |
| COMMIT_KEY: ${{ secrets.COMMIT_KEY }} | |
| FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }} |