From bcc07e17c3ef035b36053f9e07a25dfd969efa5b Mon Sep 17 00:00:00 2001 From: ausias-armesto Date: Tue, 1 Oct 2024 18:43:20 +0200 Subject: [PATCH] Send zulip notification (#142) * Update version 2.1.1 * Changed * adding log --- .github/workflows/release.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8b69ec..4574711 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 \ @@ -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 \ No newline at end of file