From 3825376c4c85de780af8175b269a4a22d90cdc30 Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford <7019101+cwillisf@users.noreply.github.com> Date: Wed, 14 Feb 2024 14:27:30 -0800 Subject: [PATCH] ci: fix deploy announcement text --- .github/workflows/ci-cd.yml | 2 ++ bin/announce.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index bc25784cc..7617da51c 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -94,6 +94,8 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} FASTLY_API_KEY: ${{ secrets.FASTLY_API_KEY }} FASTLY_SERVICE_ID: ${{ secrets.FASTLY_SERVICE_ID }} + SCRATCH_BRANCH: ${{ github.ref_name }} + SCRATCH_ENV: ${{ vars.SCRATCH_ENV }} SLACK_WEBHOOK_CIRCLECI_NOTIFICATIONS: ${{ secrets.SLACK_WEBHOOK_CIRCLECI_NOTIFICATIONS }} # TODO: rename or replace SLACK_WEBHOOK_ENGINEERING: ${{ secrets.SLACK_WEBHOOK_ENGINEERING }} SLACK_WEBHOOK_MODS: ${{ secrets.SLACK_WEBHOOK_MODS }} diff --git a/bin/announce.js b/bin/announce.js index c070b7e0d..671f0183c 100644 --- a/bin/announce.js +++ b/bin/announce.js @@ -4,7 +4,7 @@ const https = require('https'); const environment = process.env.SCRATCH_ENV || 'unknown environment'; -const branch = process.env.CIRCLE_BRANCH || 'unknown branch'; +const branch = process.env.SCRATCH_BRANCH || 'unknown branch'; const urlEng = process.env.SLACK_WEBHOOK_ENGINEERING; const urlMod = process.env.SLACK_WEBHOOK_MODS;