Skip to content

Commit

Permalink
Update discordWebhookUrl in config with GitHub Actions secret
Browse files Browse the repository at this point in the history
  • Loading branch information
Eshanchik committed Nov 14, 2024
1 parent cd6e367 commit 54f17b4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build_binary_nop_x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 54f17b4

Please sign in to comment.