Skip to content

Commit b14c726

Browse files
Merge pull request #75 from devops-infra/bugfix/args
Fix passing arguments to `format-hcl`
2 parents 7852c13 + 8ad3bda commit b14c726

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ COPY entrypoint.sh /
5353
# hadolint ignore=DL3008
5454
RUN set -eux ;\
5555
apt-get update -y ;\
56-
apt-get install --no-install-recommends -y \
57-
git ;\
5856
chmod +x /entrypoint.sh /usr/bin/format-hcl /usr/bin/fmt.sh /usr/bin/terragrunt-fmt.sh ;\
5957
apt-get clean ;\
6058
rm -rf /var/lib/apt/lists/*

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
phony: help
33

44
# Release tag for the action
5-
VERSION := v0.3.3
5+
VERSION := v0.3.4
66

77
# GitHub Actions bogus variables
88
GITHUB_REF ?= refs/heads/null

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ else
5050
fi
5151

5252
# Run main action
53-
/usr/bin/format-hcl "${LIST} ${WRITE} ${IGNORE} ${DIFF} ${CHECK} ${RECURSIVE} ${DIR}"
53+
touch /tmp/time_compare
54+
/usr/bin/format-hcl ${LIST} ${WRITE} ${IGNORE} ${DIFF} ${CHECK} ${RECURSIVE} ${DIR}
5455
RET_CODE=$?
5556

5657
# List of changed files
57-
touch /tmp/time_compare
5858
FILES_CHANGED=$(find . -newer /tmp/time_compare -type f)
5959

6060
# Info about changed files

0 commit comments

Comments
 (0)