Skip to content

Commit

Permalink
fix: default version (actions/runner#924)
Browse files Browse the repository at this point in the history
  • Loading branch information
dreinhardt89 authored and k1rk committed Aug 17, 2023
1 parent 800b18f commit e01d65f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,18 @@ inputs:
runs:
using: "composite"
steps:
- run: |
echo "test"
echo "${{ inputs.terraform_version }}"
echo "${{ inputs.use_beta_version }}"
- name: Set Terraform Version if inputs.terraform_version is Empty # Until https://github.com/actions/runner/issues/924 is fixed
id: tf_version
run: |
if [[ -z ${{ inputs.terraform_version }} ]]; then
echo "version=1.4.6" >> $GITHUB_OUTPUT
else
echo "version=${{ inputs.terraform_version }}" >> $GITHUB_OUTPUT
fi
shell: bash
- name: Build commenter docker image (master)
if: ${{ inputs.use_beta_version != 'true' }}
run: docker build --build-arg TERRAFORM_VERSION=${{ inputs.terraform_version }} -t commenter https://github.com/GetTerminus/terraform-pr-commenter.git#v3
run: docker build --build-arg TERRAFORM_VERSION=${{ steps.tf_version.outputs.version }} -t commenter https://github.com/GetTerminus/terraform-pr-commenter.git#v3
shell: bash
- name: Build commenter docker image (beta)
if: ${{ inputs.use_beta_version == 'true' }}
Expand All @@ -44,7 +48,7 @@ runs:
echo "test"
echo "${{ inputs.terraform_version }}"
echo "${{ inputs.use_beta_version }}"
docker build --build-arg TERRAFORM_VERSION=${{ inputs.terraform_version }} -t commenter https://github.com/GetTerminus/terraform-pr-commenter.git#dpr-fix-default-version
docker build --build-arg TERRAFORM_VERSION=${{ steps.tf_version.outputs.version }} -t commenter https://github.com/GetTerminus/terraform-pr-commenter.git#dpr-fix-default-version
shell: bash
- name: Run commenter image (plan)
if: ${{ inputs.commenter_type == 'plan' }}
Expand Down

0 comments on commit e01d65f

Please sign in to comment.