This repository has been archived by the owner on Jan 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from RossyWhite/action
Add action.yml
- Loading branch information
Showing
3 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: "tfsubst action" | ||
author: "RossyWhite" | ||
description: "Substitute variables with tfstate values" | ||
inputs: | ||
input: | ||
description: 'File to run substitutions on' | ||
required: true | ||
output: | ||
description: 'File to write result to' | ||
required: true | ||
tfstate: | ||
description: 'Path to tfstate file' | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: "Install tfsubst" | ||
run: | | ||
curl -sfL https://raw.githubusercontent.com/RossyWhite/tfsubst/main/install.sh | sh | ||
shell: bash | ||
- name: "Run tfsubst" | ||
run: | | ||
tfsubst < ${{ inputs.input }} -s ${{ inputs.tfstate }} > ${{ inputs.output }} | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters