Skip to content

Commit

Permalink
Create update-CloudformationTemplate.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kcantrel authored Aug 20, 2024
1 parent ab7b8a6 commit 0c4679c
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/update-CloudformationTemplate.yml
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/monitor-ontap-services/monitor_ontap_services.py'
push:
paths:
- 'Monitoring/monitor-ontap-services/monitor_ontap_services.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/monitor-ontap-services
run: ./updateMonOntapServiceCFTemplate

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

0 comments on commit 0c4679c

Please sign in to comment.