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

Add a CloudFormation template to the auto-add-cw-alarms sample. #193

Merged
merged 7 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
# Copyright (c) NetApp, Inc.
# SPDX-License-Identifier: Apache-2.0

name: "Update Cloudformation Template"

on:
pull_request:
paths:
- 'Monitoring/auto-add-cw-alarms/auto_add_cw_alarms.py'
push:
paths:
- 'Monitoring/auto-add-cw-alarms/auto_add_cw_alarms.py'
branches:
- main

jobs:
update-Cloudformation-Template:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write

steps:
- name: Checkout pull request
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Update the Cloudformation Template
shell: bash
working-directory: Monitoring/auto-add-cw-alarms
run: ./update-auto-add-cw-alarms-CF-Template

- name: Commit the changes
uses: stefanzweifel/git-auto-commit-action@v5
Loading