Skip to content

Commit

Permalink
Add inputs prefix to workflow input usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tpreviero committed Mar 23, 2024
1 parent 588c7f3 commit 73e721f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/create-space.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
- name: Create file for space
run : |
cat > ${{ github.actor }}.software-engineer.space.tf << EOF
module "${{ dns_prefix }}" {
module "${{ inputs.dns_prefix }}" {
source = "./modules/software-engineer-space"
github_handle = "${{ github.actor }}"
domain_prefix = "${{ dns_prefix }}"
domain_prefix = "${{ inputs.dns_prefix }}"
cloudflare_zone_id = cloudflare_zone.software-engineer-space.id
providers = {
Expand All @@ -36,7 +36,7 @@ jobs:
git config user.name github-actions
git config user.email [email protected]
git add ${{ github.actor }}.software-engineer.space.tf
git commit -am "Add space for ${{ github.actor }} as ${{ dns_prefix }}.software-engineer.space.tf"
git commit -am "Add space for ${{ github.actor }} as ${{ inputs.dns_prefix }}.software-engineer.space.tf"
git push
- name: Run terraform
run: |
Expand Down

0 comments on commit 73e721f

Please sign in to comment.