Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send zulip notification #142

Merged
merged 5 commits into from
Oct 1, 2024
Merged
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
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build and publish to package repository
id: publish
run: |
npm install
npx @dappnode/dappnodesdk publish patch \
Expand All @@ -21,6 +22,22 @@ jobs:

echo "DNP (DAppNode Package) built and uploaded" >> $GITHUB_STEP_SUMMARY
grep "ipfs" build.log >> $GITHUB_STEP_SUMMARY
ipfs_hash=$(grep -oP 'Release hash : \K/ipfs/\w+' build.log)
echo "ipfs_hash=$ipfs_hash" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEVELOPER_ADDRESS: "0x7305356ad936A06c4ea5DF45AD5E5C3ff9Db818E"

- name: Send message to Zulip
uses: zulip/github-actions-zulip/send-message@v1
with:
api-key: ${{ secrets.ZULIP_API_KEY }}
email: ${{ secrets.ZULIP_EMAIL }}
organization-url: "https://hopr.zulipchat.com"
type: "stream"
to: "Releases"
topic: "main"
content: |
A new hoprd dAppNode package version is available.
- IPFS Hash: ${{ steps.publish.outputs.ipfs_hash }}
Access to your dAppNode and check for the updates