From cce6f962708a15019570d7707b5cb2aa5df9d4af Mon Sep 17 00:00:00 2001 From: Ige Adetokunbo Temitayo Date: Sat, 10 Jul 2021 15:09:11 +0400 Subject: [PATCH] fix: fixed an existing bug Signed-off-by: Ige Adetokunbo Temitayo --- README.md | 5 ++--- entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1fb2563..5ed6748 100644 --- a/README.md +++ b/README.md @@ -34,15 +34,14 @@ jobs: steps: - uses: actions/checkout@v1 - name: Packer build - uses: ExitoLab/packer_build_action_aws@v2.8 + uses: ExitoLab/packer_build_action_aws@v2.9 with: templateFile: 'packer-template.json' workingDir: '.' - varFile: 'packer-vars.json' env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_DEFAULT_REGION: us-east-1 ``` -Pls note: Don't add the `varFile` if you do not have the file in your working directory \ No newline at end of file +Pls note: Add the `varFile` if you do have the file in your working directory \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 5fc2829..0224ff8 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -18,7 +18,7 @@ fi # #check if variable file is supply variableCommand="" -if [ -f "{$INPUT_VARFILE}" ]; then +if [ -f "$INPUT_VARFILE" ]; then variableCommand="-var-file=$INPUT_VARFILE" fi