Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1942 task updates and maintenance #2002

Merged
merged 3 commits into from
Apr 11, 2023
Merged
Changes from 2 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
36 changes: 36 additions & 0 deletions .github/workflows/aws-cfn-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Validate CloudFormation templates

on:
pull_request:
branches: [ main-vnext ]
paths:
- 'templates/aws/**'
push:
branches: [ main-vnext ]
paths:
- 'templates/aws/**'
workflow_dispatch:
delager marked this conversation as resolved.
Show resolved Hide resolved

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@v6
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/checkout@v3.4.0

- name: Check CloudFormation Syntax
uses: scottbrenner/cfn-lint-action@v2
with:
path: templates/aws/