From ef9e4057bfe06dc810f241d541eff766f2abcc71 Mon Sep 17 00:00:00 2001 From: Sayali M Date: Fri, 9 Feb 2024 17:37:31 -0600 Subject: [PATCH] mount file path issue --- .github/workflows/generate.yml | 3 --- main.tf | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 7fb4138..77885bd 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -65,15 +65,12 @@ jobs: - name: Mount commands.json run: | spacectl stack environment mount --id liquibase-github-actions commands.json commands.json - echo "commands_file_path=${commands_file_path}" - name: Deploy infrastructure -# if: github.ref == 'refs/heads/main' env: SPACELIFT_API_KEY_ENDPOINT: ${{ secrets.SPACELIFT_API_KEY_ENDPOINT }} SPACELIFT_API_KEY_ID: ${{ secrets.SPACELIFT_API_KEY_ID }} SPACELIFT_API_KEY_SECRET: ${{ secrets.SPACELIFT_API_KEY_SECRET }} - #COMMANDS_FILE_PATH: ${{ env.commands_file_path }} run: | spacectl stack set-current-commit --id liquibase-github-actions --sha ${{ github.sha }} spacectl stack deploy --id liquibase-github-actions --auto-confirm diff --git a/main.tf b/main.tf index a48b919..89a286c 100644 --- a/main.tf +++ b/main.tf @@ -16,6 +16,10 @@ locals { commands = jsondecode(file("${path.module}/commands.json")) } +output "commands_file_exists" { + value = local.commands_file_exists +} + resource "github_repository" "liquibase-github-actions" { for_each = toset(local.commands) name = replace(each.key, " ", "-")