Skip to content

Commit ee85a3f

Browse files
Merge pull request #4 from devwithkrishna/feature/converting-to-action
Add Azure Terraforminator Action for Decommissioning Resource Groups
2 parents 7e3cf4d + 8b932e1 commit ee85a3f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

action.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 'Azure Terraforminator Action '
2+
description: 'A GitHub Action that decommisions resource groups tagged with Temporay as TRUE'
3+
author: 'githubofkrishnadhas'
4+
# reference https://haya14busa.github.io/github-action-brandings/
5+
branding:
6+
icon: 'cloud-lightning'
7+
color: 'green'
8+
inputs:
9+
subscription_name:
10+
required: true
11+
type: string
12+
default: ""
13+
description: "The azure subscription name."
14+
runs:
15+
using: 'composite'
16+
steps:
17+
- name: Install Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.11'
21+
- name: package installations
22+
run: |
23+
pip install poetry
24+
poetry install -v --no-root --no-interaction
25+
- name: Run Python program
26+
run: |
27+
poetry run python3 terraforminator.py --subscription_name ${{ inputs.subscription_name }}

0 commit comments

Comments
 (0)