Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,55 +76,3 @@ jobs:
- name: Build docs
run: |
hatch run docs:build

notify-slack:
runs-on: ubuntu-latest
needs: [test, lint, docs-build]
if: ${{ always() }}
steps:
- name: Inform the Codemonkeys
uses: slackapi/slack-github-action@v3
with:
webhook-type: incoming-webhook
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
payload: |
{
"text": "CI Workflow Results for ${{ github.repository }}",
"attachments": [
{
"color": "${{ needs.test.result == 'success' && needs.lint.result == 'success' && needs.docs-build.result == 'success' && 'good' || 'danger' }}",
"fields": [
{
"title": "Workflow",
"value": "${{ github.workflow }}",
"short": true
},
{
"title": "Repository",
"value": "${{ github.repository }}",
"short": true
},
{
"title": "Branch",
"value": "${{ github.ref_name }}",
"short": true
},
{
"title": "Author",
"value": "${{ github.actor }}",
"short": true
},
{
"title": "Test Results",
"value": "Tests: ${{ needs.test.result }} | Lint: ${{ needs.lint.result }} | Docs: ${{ needs.docs-build.result }}",
"short": false
},
{
"title": "Links",
"value": "<${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|View Commit> | <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Workflow>",
"short": false
}
]
}
]
}
46 changes: 15 additions & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,36 +83,20 @@ jobs:
runs-on: ubuntu-latest
needs:
- github-publish
if: ${{ always() }}
if: ${{ always() && needs.github-publish.result != 'skipped' }}
steps:
- name: Inform the Codemonkeys
uses: slackapi/slack-github-action@v3
- name: Notify Zulip
uses: zulip/github-actions-zulip/send-message@v2
with:
webhook-type: incoming-webhook
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
payload: |
{
"attachments": [
{
"color": "${{ needs.github-publish.result == 'success' && 'good' || needs.github-publish.result == 'failure' && 'danger' || 'warning' }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Release:* <${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ github.ref_name }}|${{ github.ref_name }}>\n*Repository:* ${{ github.repository }}\n*Status:* ${{ needs.github-publish.result }}\n*Triggered by:* ${{ github.actor }}"
}
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow run>"
}
]
}
]
}
]
}
api-key: ${{ secrets.ZULIP_API_KEY }}
email: "build-status-bot@catalyst-cooperative.zulipchat.com"
organization-url: "https://catalyst-cooperative.zulipchat.com"
type: "stream"
to: "pudl-deployments"
topic: "ferc-xbrl-extractor"
content: |
${{ needs.github-publish.result == 'success' && ':check:' || needs.github-publish.result == 'failure' && ':x:' || ':warning:' }} `build-package-release` completed with status `${{ needs.github-publish.result }}`.
[Release `${{ github.ref_name }}`](${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ github.ref_name }})
Repository: `${{ github.repository }}`
Triggered by: `${{ github.actor }}`
[View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})