-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
38 lines (35 loc) · 1.11 KB
/
action.yml
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
name: 'Comment Terraform Plan'
description: 'A cool Github Action to put easy-to-read comments for TF Plan'
inputs:
plan:
description: 'The path to the JSON File containing the Terraform Plan'
required: true
# GITHUB_TOKEN:
# description: 'The GITHUB_TOKEN secret'
# required: true
# GITHUB_REPOSITORY:
# description: 'The Github Repository name'
# required: true
# GITHUB_PR_NUMBER:
# description: 'The Github PR Number'
# required: true
runs:
using: 'composite'
steps:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
pip install -r ${{ github.action_path }}/requirements.txt
- name: Run the action
shell: bash
# env:
# GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
# GITHUB_REPOSITORY: ${{ inputs.GITHUB_REPOSITORY }}
# GITHUB_PR_NUMBER: ${{ inputs.GITHUB_PR_NUMBER }}
run: |
python ${{ github.action_path }}/src/main.py ${{ github.workspace }}/${{ inputs.plan }}