Skip to content

Commit

Permalink
Merge pull request #2 from dasmeta/DMVP-739
Browse files Browse the repository at this point in the history
Dmvp 739
  • Loading branch information
0katrinpetrosyan0 authored Jun 13, 2022
2 parents effdbcd + e46144d commit 6acb301
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions terraform/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,14 @@ inputs:
description: "Variable file"
required: false
default: "env.tfvars"
post-plan-to-github-pr:
is-pr:
description: "Allows to disable plan result posting into github PR as comment"
required: false
default: "true"
do-apply:
description: "Allows to enable plan result direct apply"
required: false
default: "false"
target_branch:
description: 'The name of target branch to merge'
required: false
default: "master"

runs:
using: "composite"
Expand All @@ -60,12 +56,12 @@ runs:
fetch-depth: ${{ inputs.fetch-depth }}

- name: Merge branches
if: ${{inputs.target_branch}}
if: ${{inputs.is-pr == 'true'}}
uses: devmasx/merge-branch@master
with:
type: now
target_branch: ${{ inputs.target_branch }}
github_token: ${{ inputs.github_token }}
target_branch: ${{ github.event.pull_request.base.ref }}
github_token: ${{ inputs.github-token }}

- uses: marceloprado/has-changed-path@v1
id: changed
Expand Down Expand Up @@ -113,7 +109,7 @@ runs:
shell: bash

- name: Post Plan to GitHub PR
if: ${{inputs.post-plan-to-github-pr == 'true'}}
if: ${{inputs.is-pr == 'true'}}
uses: mshick/add-pr-comment@v1
with:
repo-token: ${{ inputs.github-token }}
Expand Down

0 comments on commit 6acb301

Please sign in to comment.