From 69958e506c546c2a29d299a28eb39e4c0a940750 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Sun, 9 Nov 2025 06:04:02 -0500 Subject: [PATCH] Ordering. --- action.yml | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/action.yml b/action.yml index 6b5440a..7a87e95 100644 --- a/action.yml +++ b/action.yml @@ -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" \ No newline at end of file