-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathupdate-CloudformationTemplate.yml
More file actions
42 lines (35 loc) · 1.25 KB
/
update-CloudformationTemplate.yml
File metadata and controls
42 lines (35 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
# 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: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
with:
egress-policy: audit
- name: Checkout pull request
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
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: step-security/git-auto-commit-action@905c3cd6e9ed2b67b4d46ff401fdb6d745d0ff9d # v7.1.0