File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments