Bump actions/checkout from 4.2.1 to 4.2.2 (#3245) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate CloudFormation templates | |
on: | |
pull_request: | |
branches: [ main, main-vnext ] | |
paths: | |
- 'templates/aws/**' | |
push: | |
branches: [ main, main-vnext ] | |
paths: | |
- 'templates/aws/**' | |
workflow_dispatch: | |
jobs: | |
validate_cfn_templates: | |
name: Build and Validate CloudFormation Templates | |
runs-on: ubuntu-latest | |
steps: | |
- name: Apply cfn-templates label on PR | |
uses: actions/github-script@v7 | |
if: ${{ github.event_name == 'pull_request' }} | |
with: | |
script: | | |
github.rest.issues.addLabels({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
labels: ['cfn-templates'] | |
}) | |
- uses: actions/[email protected] | |
- name: Check CloudFormation Syntax | |
uses: scottbrenner/cfn-lint-action@v2 | |
with: | |
command: cfn-lint templates/aws/*.yml |