Skip to content

Commit 788d1b9

Browse files
authored
Merge pull request hashicorp#62 from hashicorp/release/0.4.0
0.4.0
2 parents f1ce079 + c7d538b commit 788d1b9

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

apply/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LABEL "repository"="https://github.com/hashicorp/terraform-github-actions"
99
LABEL "homepage"="http://github.com/hashicorp/terraform-github-actions"
1010
LABEL "maintainer"="HashiCorp Terraform Team <[email protected]>"
1111

12-
RUN apk --no-cache add jq curl
12+
RUN apk --update --no-cache add jq curl bash
1313

1414
COPY entrypoint.sh /entrypoint.sh
1515
ENTRYPOINT ["/entrypoint.sh"]

apply/entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ set -e
4646

4747
# If PR_DATA is null, then this is not a pull request event and so there's
4848
# no where to comment.
49-
PR_DATA=$(cat /github/workflow/event.json | jq -r .pull_request)
49+
PR_DATA=$(cat $GITHUB_EVENT_PATH | jq -r .pull_request)
5050
if [ "$TF_ACTION_COMMENT" = "1" ] || [ "$TF_ACTION_COMMENT" = "false" ] || [ "$PR_DATA" = "null" ]; then
5151
exit $SUCCESS
5252
fi
@@ -70,7 +70,7 @@ fi
7070

7171
# Post the comment.
7272
PAYLOAD=$(echo '{}' | jq --arg body "$COMMENT" '.body = $body')
73-
COMMENTS_URL=$(cat /github/workflow/event.json | jq -r .pull_request.comments_url)
73+
COMMENTS_URL=$(cat $GITHUB_EVENT_PATH | jq -r .pull_request.comments_url)
7474
curl -s -S -H "Authorization: token $GITHUB_TOKEN" --header "Content-Type: application/json" --data "$PAYLOAD" "$COMMENTS_URL" > /dev/null
7575

7676
exit $SUCCESS

fmt/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LABEL "repository"="https://github.com/hashicorp/terraform-github-actions"
99
LABEL "homepage"="http://github.com/hashicorp/terraform-github-actions"
1010
LABEL "maintainer"="HashiCorp Terraform Team <[email protected]>"
1111

12-
RUN apk --no-cache add jq curl
12+
RUN apk --update --no-cache add jq curl bash
1313

1414
COPY entrypoint.sh /entrypoint.sh
1515
ENTRYPOINT ["/entrypoint.sh"]

fmt/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ $COMMENT
4747
*Workflow: \`$GITHUB_WORKFLOW\`, Action: \`$GITHUB_ACTION\`*
4848
"
4949
PAYLOAD=$(echo '{}' | jq --arg body "$COMMENT_WRAPPER" '.body = $body')
50-
COMMENTS_URL=$(cat /github/workflow/event.json | jq -r .pull_request.comments_url)
50+
COMMENTS_URL=$(cat $GITHUB_EVENT_PATH | jq -r .pull_request.comments_url)
5151
curl -s -S -H "Authorization: token $GITHUB_TOKEN" --header "Content-Type: application/json" --data "$PAYLOAD" "$COMMENTS_URL" > /dev/null
5252

5353
exit $SUCCESS

init/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LABEL "repository"="https://github.com/hashicorp/terraform-github-actions"
99
LABEL "homepage"="http://github.com/hashicorp/terraform-github-actions"
1010
LABEL "maintainer"="HashiCorp Terraform Team <[email protected]>"
1111

12-
RUN apk --no-cache add jq curl
12+
RUN apk --update --no-cache add jq curl bash
1313

1414
COPY entrypoint.sh /entrypoint.sh
1515
ENTRYPOINT ["/entrypoint.sh"]

init/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $OUTPUT
3131
\`\`\`
3232
*Workflow: \`$GITHUB_WORKFLOW\`, Action: \`$GITHUB_ACTION\`*"
3333
PAYLOAD=$(echo '{}' | jq --arg body "$COMMENT" '.body = $body')
34-
COMMENTS_URL=$(cat /github/workflow/event.json | jq -r .pull_request.comments_url)
34+
COMMENTS_URL=$(cat $GITHUB_EVENT_PATH | jq -r .pull_request.comments_url)
3535
curl -s -S -H "Authorization: token $GITHUB_TOKEN" --header "Content-Type: application/json" --data "$PAYLOAD" "$COMMENTS_URL" > /dev/null
3636

3737
exit $SUCCESS

plan/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LABEL "repository"="https://github.com/hashicorp/terraform-github-actions"
99
LABEL "homepage"="http://github.com/hashicorp/terraform-github-actions"
1010
LABEL "maintainer"="HashiCorp Terraform Team <[email protected]>"
1111

12-
RUN apk --no-cache add jq curl
12+
RUN apk --update --no-cache add jq curl bash
1313

1414
COPY entrypoint.sh /entrypoint.sh
1515
ENTRYPOINT ["/entrypoint.sh"]

plan/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ fi
7979

8080
# Post the comment.
8181
PAYLOAD=$(echo '{}' | jq --arg body "$COMMENT" '.body = $body')
82-
COMMENTS_URL=$(cat /github/workflow/event.json | jq -r .pull_request.comments_url)
82+
COMMENTS_URL=$(cat $GITHUB_EVENT_PATH | jq -r .pull_request.comments_url)
8383
curl -s -S -H "Authorization: token $GITHUB_TOKEN" --header "Content-Type: application/json" --data "$PAYLOAD" "$COMMENTS_URL" > /dev/null
8484

8585
exit $SUCCESS

validate/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LABEL "repository"="https://github.com/hashicorp/terraform-github-actions"
99
LABEL "homepage"="http://github.com/hashicorp/terraform-github-actions"
1010
LABEL "maintainer"="HashiCorp Terraform Team <[email protected]>"
1111

12-
RUN apk --no-cache add jq curl
12+
RUN apk --update --no-cache add jq curl bash
1313

1414
COPY entrypoint.sh /entrypoint.sh
1515
ENTRYPOINT ["/entrypoint.sh"]

validate/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $OUTPUT
2626
\`\`\`
2727
*Workflow: \`$GITHUB_WORKFLOW\`, Action: \`$GITHUB_ACTION\`*"
2828
PAYLOAD=$(echo '{}' | jq --arg body "$COMMENT" '.body = $body')
29-
COMMENTS_URL=$(cat /github/workflow/event.json | jq -r .pull_request.comments_url)
29+
COMMENTS_URL=$(cat $GITHUB_EVENT_PATH | jq -r .pull_request.comments_url)
3030
curl -s -S -H "Authorization: token $GITHUB_TOKEN" --header "Content-Type: application/json" --data "$PAYLOAD" "$COMMENTS_URL" > /dev/null
3131

3232
exit $SUCCESS

0 commit comments

Comments
 (0)