The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Fix pagerDurty workflow edge case (#71574)
github-automation-metabase38e28e0ec3ed
diff --git a/.github/workflows/querying-team-pagerduty.yml b/.github/workflows/querying-team-pagerduty.ymlindex 6bb17502400..c0dd5cec043 100644--- a/.github/workflows/querying-team-pagerduty.yml+++ b/.github/workflows/querying-team-pagerduty.yml@@ -13,32 +13,35 @@ jobs:(github.event.label.name == 'Priority:P0' || github.event.label.name == 'Priority:P1' || github.event.label.name == '.Escalation') &&contains(github.event.issue.labels.*.name, '.Team/Querying')steps:- - name: Setting title- uses: actions/github-script@v7- id: vars- with:- script: |- core.setOutput('issue_title', ${{ toJson(github.event.issue.title) }}.replaceAll(/"/g, '\\"'));- name: Trigger PagerDuty Incident+ env:+ ROUTING_KEY: ${{ secrets.QUERYING_PAGERDUTY_INTEGRATION_KEY }}+ ISSUE_TITLE: ${{ github.event.issue.title }}+ LABEL_NAME: ${{ github.event.label.name }}+ ISSUE_NUMBER: ${{ github.event.issue.number }}+ ISSUE_URL: ${{ github.event.issue.html_url }}+ REPO: ${{ github.repository }}+ ALL_LABELS: ${{ join(github.event.issue.labels.*.name, ', ') }}run: |+ payload=$(jq -n \+ --arg rk "$ROUTING_KEY" \+ --arg dk "github-issue-$ISSUE_NUMBER" \+ --arg sum "[$LABEL_NAME] $ISSUE_TITLE" \+ --arg src "GitHub Issues - $REPO" \+ --arg lbl "$ALL_LABELS" \+ --arg url "$ISSUE_URL" \+ '{+ routing_key: $rk,+ event_action: "trigger",+ dedup_key: $dk,+ payload: {+ summary: $sum,+ source: $src,+ severity: "critical",+ custom_details: { Labels: $lbl }+ },+ links: [{ href: $url, text: "View GitHub Issue" }]+ }')curl -X POST https://events.pagerduty.com/v2/enqueue \-H 'Content-Type: application/json' \- -d '{- "routing_key": "${{ secrets.QUERYING_PAGERDUTY_INTEGRATION_KEY }}",- "event_action": "trigger",- "dedup_key": "github-issue-${{ github.event.issue.number }}",- "payload": {- "summary": "[${{ github.event.label.name }}] ${{ steps.vars.outputs.issue_title }}",- "source": "GitHub Issues - ${{ github.repository }}",- "severity": "critical",- "custom_details": {- "Labels": "${{ join(github.event.issue.labels.*.name, ', ') }}"- }- },- "links": [- {- "href": "${{ github.event.issue.html_url }}",- "text": "View GitHub Issue"- }- ]- }'+ -d "$payload"