LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
UN-2544 [MISC] Add Slack notifications for releases and Docker builds (#1379)
Ritwik G194206b4232a
diff --git a/.github/workflows/production-build.yaml b/.github/workflows/production-build.yamlindex ff3f58da2..60b43efa4 100644--- a/.github/workflows/production-build.yaml+++ b/.github/workflows/production-build.yaml@@ -88,3 +88,93 @@ jobs:*.args.VERSION=${{ env.DOCKER_VERSION_TAG }}*.cache-from=type=gha,scope=${{ matrix.service_name }}*.cache-to=type=gha,mode=max,scope=${{ matrix.service_name }}++ # Notify Slack on successful build+ - name: Notify Slack on Success+ if: success()+ uses: slackapi/[email protected]+ with:+ payload: |+ {+ "text": "✅ Docker Build Successful",+ "attachments": [+ {+ "color": "good",+ "fields": [+ {+ "title": "Service",+ "value": "${{ matrix.service_name }}",+ "short": true+ },+ {+ "title": "Tag",+ "value": "${{ env.DOCKER_VERSION_TAG }}",+ "short": true+ },+ {+ "title": "Repository",+ "value": "${{ github.repository }}",+ "short": true+ },+ {+ "title": "Workflow",+ "value": "${{ github.workflow }}",+ "short": true+ },+ {+ "title": "Run URL",+ "value": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",+ "short": false+ }+ ],+ "footer": "GitHub Actions"+ }+ ]+ }+ env:+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}++ # Notify Slack on failed build+ - name: Notify Slack on Failure+ if: failure()+ uses: slackapi/[email protected]+ with:+ payload: |+ {+ "text": "❌ Docker Build Failed",+ "attachments": [+ {+ "color": "danger",+ "fields": [+ {+ "title": "Service",+ "value": "${{ matrix.service_name }}",+ "short": true+ },+ {+ "title": "Tag",+ "value": "${{ env.DOCKER_VERSION_TAG }}",+ "short": true+ },+ {+ "title": "Repository",+ "value": "${{ github.repository }}",+ "short": true+ },+ {+ "title": "Workflow",+ "value": "${{ github.workflow }}",+ "short": true+ },+ {+ "title": "Run URL",+ "value": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",+ "short": false+ }+ ],+ "footer": "GitHub Actions"+ }+ ]+ }+ env:+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}diff --git a/.github/workflows/release-notification.yaml b/.github/workflows/release-notification.yamlnew file mode 100644index 000000000..adbc378e1--- /dev/null+++ b/.github/workflows/release-notification.yaml@@ -0,0 +1,49 @@+name: Release Notification++on:+ release:+ types: [created, published]++jobs:+ notify-slack:+ runs-on: ubuntu-latest+ steps:++ - name: Send Slack notification+ uses: slackapi/[email protected]+ with:+ payload: |+ {+ "text": "🚀 New Release: ${{ github.event.release.name || github.event.release.tag_name }}",+ "attachments": [+ {+ "color": "good",+ "fields": [+ {+ "title": "Release",+ "value": "${{ github.event.release.tag_name }}",+ "short": true+ },+ {+ "title": "Repository",+ "value": "${{ github.repository }}",+ "short": true+ },+ {+ "title": "Release Notes",+ "value": "${{ github.event.release.body || 'No release notes provided.' }}",+ "short": false+ },+ {+ "title": "Release URL",+ "value": "${{ github.event.release.html_url }}",+ "short": false+ }+ ],+ "footer": "GitHub Release",+ "ts": "${{ github.event.release.created_at }}"+ }+ ]+ }+ env:+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}