add electra config vars for mainnet and minimal #37
This file contains 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: Zulip Notification Bot | |
on: | |
push: | |
permissions: | |
contents: read | |
jobs: | |
post-to-zulip: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/github-script@v7 | |
id: generate-msg | |
with: | |
script: | | |
let message = `- **${context.actor}** \`${context.ref}\` | ${context.sha.substring(0,7)} | [${context.payload.head_commit.message?.split('\n')[0]}](${context.payload.compare})` | |
let topic = context.repo.repo | |
core.setOutput("topic", topic); | |
core.setOutput("msg", message); | |
- name: Send a stream message | |
uses: zulip/github-actions-zulip/send-message@v1 | |
with: | |
api-key: ${{ secrets.ZULIP_API_KEY }} | |
email: ${{ secrets.ZULIP_BOT_EMAIL }} | |
organization-url: ${{ secrets.ZULIP_ORG_URL }} | |
to: "Commits" | |
type: "stream" | |
topic: ${{ steps.generate-msg.outputs.topic }} | |
content: ${{ steps.generate-msg.outputs.msg }} |