Skip to content

Commit

Permalink
fix: update credential file
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkiwi committed Dec 2, 2024
1 parent 35333a7 commit b525cce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion auth/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ runs:
id: create
shell: bash
run: |
CREDENTIAL_FILE="$HOME/${{ inputs.terraform-cli-config-file }}"
CREDENTIAL_FILE="${{ inputs.terraform-cli-config-file }}"
# if CREDENTIAL_FILE does not start with $HOME, prepend it
if [[ ! "$CREDENTIAL_FILE" =~ ^\$HOME ]]; then
CREDENTIAL_FILE="$HOME/$CREDENTIAL_FILE"
fi
if [[ -f "$CREDENTIAL_FILE" ]]; then
echo "file-created=false" >> $GITHUB_OUTPUT
echo "Terraform credentials already present, skipping."
Expand Down

0 comments on commit b525cce

Please sign in to comment.