Skip to main content

list-targets-with-changed-files

Source code

GitHub Actions to list targets

Example

- run: ci-info run | sed "s/^export //" >> "$GITHUB_ENV"
- uses: suzuki-shunsuke/tfaction/list-working-dirs@main
id: working-dirs
- uses: suzuki-shunsuke/tfaction/list-targets-with-changed-files@main
id: list-targets
with:
changed_files: ${{ env.CI_INFO_TEMP_DIR }}/pr_all_filenames.txt
labels: ${{ env.CI_INFO_TEMP_DIR }}/labels.txt
config_files: ${{ steps.working-dirs.outputs.file }}

Inputs

Required Inputs

nametypedescription
changed_filesstring (file path)a file path where the list of changed file paths are written
labelsstring (file path)a file path where the list of pull request labels are written
config_filesstring (file path)a file path where the list of configuration file paths are written

Outputs

nametypedescription
tfmigrate_targets[]objectList of tfmigrate targets
terraform_targets[]objectList of terraform targets