Skip to content

Commit 2f4e5ba

Browse files
committed
Fix comment event reactions
1 parent 2f77226 commit 2f4e5ba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

image/actions.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ function setup() {
7676
exit 1
7777
fi
7878

79+
if [[ ! -v TERRAFORM_ACTIONS_GITHUB_TOKEN ]]; then
80+
if [[ -v GITHUB_TOKEN ]]; then
81+
export TERRAFORM_ACTIONS_GITHUB_TOKEN="$GITHUB_TOKEN"
82+
fi
83+
fi
84+
7985
if ! github_comment_react +1 2>"$STEP_TMP_DIR/github_comment_react.stderr"; then
8086
debug_file "$STEP_TMP_DIR/github_comment_react.stderr"
8187
fi
@@ -102,12 +108,6 @@ function setup() {
102108

103109
detect-tfmask
104110

105-
if [[ ! -v TERRAFORM_ACTIONS_GITHUB_TOKEN ]]; then
106-
if [[ -v GITHUB_TOKEN ]]; then
107-
export TERRAFORM_ACTIONS_GITHUB_TOKEN="$GITHUB_TOKEN"
108-
fi
109-
fi
110-
111111
execute_run_commands
112112
}
113113

0 commit comments

Comments
 (0)