|
73 | 73 | steps: |
74 | 74 | - name: Notify Slack - Approved |
75 | 75 | if: needs.notify-approval-needed.outputs.slack_ts != '' |
76 | | - uses: posthog/.github/.github/actions/slack-thread-reply@5fc4680761e8ac29a61b212756230eba0e276d8c |
| 76 | + uses: posthog/.github/.github/actions/slack-thread-reply@cb0979b67dcd585828b61ac45927eef4da8f6287 # main |
77 | 77 | with: |
78 | 78 | slack_bot_token: ${{ secrets.SLACK_CLIENT_LIBRARIES_BOT_TOKEN }} |
79 | 79 | slack_channel_id: ${{ vars.SLACK_APPROVALS_CLIENT_LIBRARIES_CHANNEL_ID }} |
@@ -208,21 +208,29 @@ jobs: |
208 | 208 | # Notify in case of a failure |
209 | 209 | - name: Send failure event to PostHog |
210 | 210 | if: ${{ failure() }} |
211 | | - uses: PostHog/posthog-github-action@58dea254b598fb5d469c0699c98af8288a7f7650 # v1.2.0 |
| 211 | + continue-on-error: true |
| 212 | + uses: PostHog/posthog-github-action@9a6a19d360820ab4d95ecc4a5a7564062c895f84 # v1.3.0 |
212 | 213 | with: |
213 | 214 | posthog-token: "${{ secrets.POSTHOG_PROJECT_API_KEY }}" |
214 | | - event: "posthog-python-github-release-workflow-failure" |
| 215 | + event: "posthog-sdk-github-release-workflow-failure" |
215 | 216 | properties: >- |
216 | 217 | { |
217 | 218 | "commitSha": "${{ github.sha }}", |
218 | 219 | "jobStatus": "${{ job.status }}", |
219 | 220 | "ref": "${{ github.ref }}", |
220 | | - "version": "${{ steps.sampo-release.outputs.new_version }}" |
| 221 | + "repository": "${{ github.repository }}", |
| 222 | + "sdk": "posthog-python", |
| 223 | + "jobName": "version-bump", |
| 224 | + "packageName": "posthog-python", |
| 225 | + "packageVersion": "${{ steps.sampo-release.outputs.new_version || 'unknown' }}", |
| 226 | + "actionUrl": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", |
| 227 | + "alertText": ":rotating_light: Failed to prepare release posthog-python@${{ steps.sampo-release.outputs.new_version }} :rotating_light:", |
| 228 | + "alertContext": "The version bump/changelog step failed before packages were published." |
221 | 229 | } |
222 | 230 |
|
223 | 231 | - name: Notify Slack - Failed |
224 | 232 | if: ${{ failure() && needs.notify-approval-needed.outputs.slack_ts != '' }} |
225 | | - uses: posthog/.github/.github/actions/slack-thread-reply@5fc4680761e8ac29a61b212756230eba0e276d8c |
| 233 | + uses: posthog/.github/.github/actions/slack-thread-reply@cb0979b67dcd585828b61ac45927eef4da8f6287 # main |
226 | 234 | with: |
227 | 235 | slack_bot_token: ${{ secrets.SLACK_CLIENT_LIBRARIES_BOT_TOKEN }} |
228 | 236 | slack_channel_id: ${{ vars.SLACK_APPROVALS_CLIENT_LIBRARIES_CHANNEL_ID }} |
@@ -388,22 +396,29 @@ jobs: |
388 | 396 | # Notify in case of a failure |
389 | 397 | - name: Send failure event to PostHog |
390 | 398 | if: ${{ failure() }} |
391 | | - uses: PostHog/posthog-github-action@58dea254b598fb5d469c0699c98af8288a7f7650 # v1.2.0 |
| 399 | + continue-on-error: true |
| 400 | + uses: PostHog/posthog-github-action@9a6a19d360820ab4d95ecc4a5a7564062c895f84 # v1.3.0 |
392 | 401 | with: |
393 | 402 | posthog-token: "${{ secrets.POSTHOG_PROJECT_API_KEY }}" |
394 | | - event: "posthog-python-github-release-workflow-failure" |
| 403 | + event: "posthog-sdk-github-release-workflow-failure" |
395 | 404 | properties: >- |
396 | 405 | { |
397 | 406 | "commitSha": "${{ github.sha }}", |
398 | 407 | "jobStatus": "${{ job.status }}", |
399 | 408 | "ref": "${{ github.ref }}", |
400 | | - "package": "${{ matrix.package.name }}", |
401 | | - "version": "${{ needs.version-bump.outputs.new_version }}" |
| 409 | + "repository": "${{ github.repository }}", |
| 410 | + "sdk": "posthog-python", |
| 411 | + "jobName": "publish", |
| 412 | + "packageName": "${{ matrix.package.name }}", |
| 413 | + "packageVersion": "${{ needs.version-bump.outputs.new_version || 'unknown' }}", |
| 414 | + "actionUrl": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", |
| 415 | + "alertText": ":rotating_light: Failed to release ${{ matrix.package.name }}@${{ needs.version-bump.outputs.new_version }} :rotating_light:", |
| 416 | + "alertContext": "The package publish step failed." |
402 | 417 | } |
403 | 418 |
|
404 | 419 | - name: Notify Slack - Failed |
405 | 420 | if: ${{ failure() && needs.notify-approval-needed.outputs.slack_ts != '' }} |
406 | | - uses: posthog/.github/.github/actions/slack-thread-reply@5fc4680761e8ac29a61b212756230eba0e276d8c |
| 421 | + uses: posthog/.github/.github/actions/slack-thread-reply@cb0979b67dcd585828b61ac45927eef4da8f6287 # main |
407 | 422 | with: |
408 | 423 | slack_bot_token: ${{ secrets.SLACK_CLIENT_LIBRARIES_BOT_TOKEN }} |
409 | 424 | slack_channel_id: ${{ vars.SLACK_APPROVALS_CLIENT_LIBRARIES_CHANNEL_ID }} |
@@ -484,7 +499,7 @@ jobs: |
484 | 499 | uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
485 | 500 |
|
486 | 501 | - name: Notify Slack - Released |
487 | | - uses: posthog/.github/.github/actions/slack-thread-reply@5fc4680761e8ac29a61b212756230eba0e276d8c |
| 502 | + uses: posthog/.github/.github/actions/slack-thread-reply@cb0979b67dcd585828b61ac45927eef4da8f6287 # main |
488 | 503 | with: |
489 | 504 | slack_bot_token: ${{ secrets.SLACK_CLIENT_LIBRARIES_BOT_TOKEN }} |
490 | 505 | slack_channel_id: ${{ vars.SLACK_APPROVALS_CLIENT_LIBRARIES_CHANNEL_ID }} |
|
0 commit comments