From 54f17b41bb782c0c4b6b736206ab8812c5e1e7a5 Mon Sep 17 00:00:00 2001 From: Eshanchik Date: Thu, 14 Nov 2024 13:27:17 +0200 Subject: [PATCH] Update discordWebhookUrl in config with GitHub Actions secret --- .github/workflows/build_binary_nop_x86_64.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build_binary_nop_x86_64.yaml b/.github/workflows/build_binary_nop_x86_64.yaml index e3b085c..d5098fb 100644 --- a/.github/workflows/build_binary_nop_x86_64.yaml +++ b/.github/workflows/build_binary_nop_x86_64.yaml @@ -51,6 +51,12 @@ jobs: components: rustfmt, clippy target: x86_64-unknown-linux-gnu + - name: Update discordWebhookUrl in config/default.json + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + run: | + jq '.discordWebhookUrl = env.DISCORD_WEBHOOK' config/default.json > tmp.json && mv tmp.json config/default.json + - name: Cache cargo registry and git dependencies uses: actions/cache@v3 with: @@ -118,6 +124,12 @@ jobs: components: rustfmt, clippy target: x86_64-unknown-linux-gnu + - name: Update discordWebhookUrl in config/default.json + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + run: | + jq '.discordWebhookUrl = env.DISCORD_WEBHOOK' config/default.json > tmp.json && mv tmp.json config/default.json + - name: Install Cosign run: | curl -sSL https://github.com/sigstore/cosign/releases/latest/download/cosign-linux-amd64 -o /usr/local/bin/cosign