Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/scripts/slackpost_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [[ $username == "" ]]; then
fi

# ------------
text="New deployment! Woo! $DEPLOY_USER: $BRANCH $DEPLOY_TAG"
text="New deployment! Woo! $DEPLOY_NOTIFIER: $BRANCH $DEPLOY_TAG"

escapedText=$(echo "$text" | sed 's/"/\"/g' | sed "s/'/\'/g")

Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,13 @@ jobs:
deploy:
name: Deploy
env:
DEPLOY_USER: ${{ github.actor }}
# DEPLOY_USER is the Terraform stack identity: it names every resource and
# selects the remote state file (see TF_VAR_user). Keep it "circleci" to
# match the existing stacks — it was hardcoded under CircleCI, and if it
# became the pushing user (github.actor) every deploy would fork a new stack.
DEPLOY_USER: circleci
# Who actually triggered the deploy; shown in the Slack notification.
DEPLOY_NOTIFIER: ${{ github.actor }}
if: startsWith(github.ref, 'refs/tags/v') && ! endsWith(github.ref, '-hotfix')
needs:
- determine_branch
Expand Down Expand Up @@ -743,7 +749,13 @@ jobs:
deploy_hotfix:
name: Deploy Hotfix
env:
DEPLOY_USER: ${{ github.actor }}
# DEPLOY_USER is the Terraform stack identity: it names every resource and
# selects the remote state file (see TF_VAR_user). Keep it "circleci" to
# match the existing stacks — it was hardcoded under CircleCI, and if it
# became the pushing user (github.actor) every deploy would fork a new stack.
DEPLOY_USER: circleci
# Who actually triggered the deploy; shown in the Slack notification.
DEPLOY_NOTIFIER: ${{ github.actor }}
if: startsWith(github.ref, 'refs/tags/v') && endsWith(github.ref, '-hotfix')
needs:
- determine_branch
Expand Down
Loading