Skip to content

Commit 0286608

Browse files
Try to test once more.
1 parent 9b7b382 commit 0286608

2 files changed

Lines changed: 28 additions & 2 deletions

File tree

.github/workflows/release-and-deploy-bfd.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ jobs:
4747
uses: aws-actions/configure-aws-credentials@v4
4848
with:
4949
role-to-assume: ${{ secrets.AWS_ROLE }}
50-
aws-region: ${{ vars.AWS_REGION }}
50+
aws-region: ${{ inputs.aws-region || 'us-east-1' }}
51+
5152

5253
- name: Load Slack webhook
5354
uses: cmsgov/cdap/actions/aws-params-env-action@main
@@ -138,7 +139,7 @@ jobs:
138139
uses: aws-actions/configure-aws-credentials@v4
139140
with:
140141
role-to-assume: ${{ secrets.AWS_ROLE }}
141-
aws-region: ${{ vars.AWS_REGION }}
142+
aws-region: ${{ inputs.aws-region || 'us-east-1' }}
142143

143144
- name: Load Slack webhook
144145
uses: cmsgov/cdap/actions/aws-params-env-action@main

tmp1.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# -------------------------
2+
# JOB 1: START NOTIFICATION
3+
# -------------------------
4+
jobs:
5+
notify-start:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Configure AWS credentials
9+
uses: aws-actions/configure-aws-credentials@v4
10+
with:
11+
role-to-assume: ${{ secrets.AWS_ROLE }}
12+
# FIX: Use input if available (manual run), otherwise use the overall default from workflow inputs
13+
aws-region: ${{ inputs.aws-region || 'us-east-1' }}
14+
15+
# ... (rest of the job remains the same)
16+
17+
- name: Slack - STARTED
18+
uses: rtCamp/action-slack-notify@v2
19+
env:
20+
# ...
21+
SLACK_MESSAGE: |
22+
# FIX: Use "latest" for push events
23+
Version: *${{ inputs.release-version || 'latest' }}*
24+
Triggered by: ${{ github.actor }}
25+
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

0 commit comments

Comments
 (0)