Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing output from Githubaction to Terragrunt Githubaction #195

Open
topeawolwo opened this issue Jun 20, 2023 · 0 comments
Open

Passing output from Githubaction to Terragrunt Githubaction #195

topeawolwo opened this issue Jun 20, 2023 · 0 comments

Comments

@topeawolwo
Copy link

I have an output from a Githubaction defined as


 - uses: dorny/paths-filter@v2
        id: filter
        with:
          list-files: shell
          filters: |
            hcls:
              - added|modified: '${{ inputs.working-dir }}/**/terragrunt.hcl'
              - added|modified: '${{ inputs.working-dir }}/**/.terraform.lock.hcl'
      - name: Changed HCL
        if: ${{ steps.filter.outputs.hcls == 'true' }}
        run: |
          echo ${{ steps.filter.outputs.hcls_files }}

I want to pass the changed files output from above to Terragrunt

  • name: Terragrunt Plan

    id: plan
    with:
    run: |
    for dir in ${{ steps.dedupe.outputs.changed_directories }}
    do
    cd ${{github.workspace}}/$dir
    terragrunt plan -no-color
    done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant