From 0d7a1400a7aa1413f5414327169543002e4c036e Mon Sep 17 00:00:00 2001 From: Marius Merschformann Date: Mon, 23 Sep 2024 22:50:29 +0200 Subject: [PATCH] Fixing slack notification --- .github/workflows/release.yml | 2 +- .nextmv/release/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 78cbd33..85a7317 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -227,7 +227,7 @@ jobs: export PATH=$PATH:~/.nextmv # Make CLI available in non-interactive shell export SLACK_NOTIFY_PARAM="" # Only notify slack for prod releases if [ ${{ matrix.environment }} == "prod" ]; then - export SLACK_NOTIFY_PARAM="--slack-url \"${{ secrets.SLACK_URL_MISSION_CONTROL }}\"" + export SLACK_NOTIFY_PARAM="--slack-url ${{ secrets.SLACK_URL_MISSION_CONTROL }}" fi python main.py \ --apps "${{ env.APPS }}" \ diff --git a/.nextmv/release/main.py b/.nextmv/release/main.py index 6bce5cf..4bc257a 100644 --- a/.nextmv/release/main.py +++ b/.nextmv/release/main.py @@ -86,7 +86,7 @@ def main(): workflow_app=workflow_app, ) - if options.slack_url is not None: + if options.slack_url: notify_slack( url=options.slack_url, app=name,