Skip to content

CloudFormation CI: Fix script path typo (#1450) #29

CloudFormation CI: Fix script path typo (#1450)

CloudFormation CI: Fix script path typo (#1450) #29

name: Publish-CloudFormation
on:
push:
branches:
- main
- "[0-9]+.[0-9]+"
paths:
- deploy/cloudformation/*.yml
- scripts/publish_cft.sh
- .github/workflows/publish-cloudformation.yml
jobs:
publish_cloudformation:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.CSPM_CFT_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.CSPM_CFT_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- name: Upload to S3 if elastic-agent CloudFormation template has changed
run: scripts/publish_cft.sh