feat(tofu): add ability to specify required tofu version
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
name: tf-apply
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
tofu-version:
|
||||
required: false
|
||||
default: 1.7.1
|
||||
type: string
|
||||
secrets:
|
||||
gpg-key:
|
||||
required: true
|
||||
@@ -54,7 +59,7 @@ jobs:
|
||||
- uses: opentofu/setup-opentofu@v1
|
||||
if: ${{ steps.check.outputs.code == 2 }}
|
||||
with:
|
||||
tofu_version: 1.7.1
|
||||
tofu_version: ${{ inputs.tofu-version }}
|
||||
cli_config_credentials_token: ${{ secrets.tf-api-token }}
|
||||
- name: Decrypt secrets
|
||||
if: ${{ steps.check.outputs.code == 2 }}
|
||||
|
||||
Reference in New Issue
Block a user