From b239cb9a9451d534b1d0ccfddfc37b9c5408266e Mon Sep 17 00:00:00 2001 From: Ryan Nikolaidis <1208590+ryannikolaidis@users.noreply.github.com> Date: Thu, 14 Sep 2023 01:15:21 -0700 Subject: [PATCH] slack message --- .github/workflows/release-version-alert.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-version-alert.yml b/.github/workflows/release-version-alert.yml index 345368784c..f475299a34 100644 --- a/.github/workflows/release-version-alert.yml +++ b/.github/workflows/release-version-alert.yml @@ -35,7 +35,7 @@ jobs: - name: Generate Message Hash id: generate-hash run: | - MESSAGE_HASH=$(echo "${MESSAGE}" | sha256sum | cut -d ' ' -f1) + MESSAGE_HASH=$(echo "${env.SLACK_MESSAGE}" | sha256sum | cut -d ' ' -f1) echo "MESSAGE_HASH=$MESSAGE_HASH" >> $GITHUB_ENV - name: Retrieve Messages from Cache @@ -49,7 +49,7 @@ jobs: - name: Check for Duplicates run: | - DUPLICATE_CHECK=$(grep -Fx "${MESSAGE}" $HOME/messages_cache.txt || true) + DUPLICATE_CHECK=$(grep -Fx "${env.SLACK_MESSAGE}" $HOME/messages_cache.txt || true) if [ -n "$DUPLICATE_CHECK" ]; then echo "Message already posted. Skipping duplicate Slack notification." exit 0 # Exit without posting a message @@ -57,7 +57,7 @@ jobs: - name: Write Message to Cache File run: | - echo "${MESSAGE}" >> $HOME/messages_cache.txt + echo "${env.SLACK_MESSAGE}" >> $HOME/messages_cache.txt - name: Store Messages in Cache uses: actions/cache@v2