Ordering.
This commit is contained in:
+20
-19
@@ -1,24 +1,6 @@
|
||||
name: "Terraform/OpenTofu PR Commenter"
|
||||
description: "Posts Terraform or OpenTofu command results as PR comments for GitHub/Gitea."
|
||||
author: "Charish Patel"
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Run Terraform/OpenTofu PR Commenter
|
||||
shell: bash
|
||||
env:
|
||||
# Inputs
|
||||
COMMENTER_TYPE: ${{ inputs.commenter_type }}
|
||||
COMMENTER_INPUT: ${{ inputs.commenter_input }}
|
||||
COMMENTER_EXITCODE: ${{ inputs.commenter_exitcode }}
|
||||
WORKING_DIR: ${{ inputs.working_directory }}
|
||||
|
||||
# PR & auth
|
||||
PR_COMMENTS_URL: ${{ inputs.pr_comments_url }}
|
||||
PR_COMMENT_ID: ${{ inputs.pr_comment_id }}
|
||||
PR_COMMENT_URI: ${{ inputs.pr_comment_uri }}
|
||||
GITHUB_TOKEN: ${{ inputs.github_token }}
|
||||
run: bash "${GITHUB_ACTION_PATH}/tf-pr-comment.sh"
|
||||
|
||||
inputs:
|
||||
commenter_type:
|
||||
@@ -50,6 +32,25 @@ inputs:
|
||||
description: "PR comment URI if updating"
|
||||
required: false
|
||||
|
||||
github_token:
|
||||
git_token:
|
||||
description: "GitHub/Gitea token for authentication"
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Run Terraform/OpenTofu PR Commenter
|
||||
shell: bash
|
||||
env:
|
||||
# Inputs
|
||||
COMMENTER_TYPE: ${{ inputs.commenter_type }}
|
||||
COMMENTER_INPUT: ${{ inputs.commenter_input }}
|
||||
COMMENTER_EXITCODE: ${{ inputs.commenter_exitcode }}
|
||||
WORKING_DIR: ${{ inputs.working_directory }}
|
||||
|
||||
# PR & auth
|
||||
PR_COMMENTS_URL: ${{ inputs.pr_comments_url }}
|
||||
PR_COMMENT_ID: ${{ inputs.pr_comment_id }}
|
||||
PR_COMMENT_URI: ${{ inputs.pr_comment_uri }}
|
||||
GITHUB_TOKEN: ${{ inputs.github_token }}
|
||||
run: bash "${GITHUB_ACTION_PATH}/tf-pr-comment.sh"
|
||||
Reference in New Issue
Block a user