Skip to content

fix(get-terraform-dir): Resolve error when multiple directories returned#102

Merged
chris3ware merged 6 commits intomainfrom
fix-get-tf-dir
Aug 29, 2024
Merged

fix(get-terraform-dir): Resolve error when multiple directories returned#102
chris3ware merged 6 commits intomainfrom
fix-get-tf-dir

Conversation

@chazypro
Copy link
Copy Markdown
Member

@chazypro chazypro commented Aug 29, 2024

The workflow was failing when multiple terraform directories were returned when formatting the output for the summary steps.

The step formatting the JSON output has been removed and a second action has been added that returns plain text output list of directory names. This is working as expected.

Also added synchronize to activity type in the pr-title workflow.

This release uses the `matrix` parameter to replace `json` and
`escape_json`
The first step will output a JSON object which can be used to define a
matrix strategy for calling workflows.

The second step will output text that is used in the job summary.

Having two steps maybe inefficient, but converting the JSON into text,
particularly with multiple directories, was proving a challenge. Better
to keep it simple when the action will natively output the formats
required.
@chazypro chazypro requested a review from a team as a code owner August 29, 2024 20:07
Required workflow so needs to run.
@chris3ware chris3ware merged commit b0ed4ae into main Aug 29, 2024
@chris3ware chris3ware deleted the fix-get-tf-dir branch August 29, 2024 20:21
3ware-release Bot pushed a commit that referenced this pull request Aug 29, 2024
## [3.1.2](v3.1.1...v3.1.2) (2024-08-29)

### Bug Fixes

* **get-terraform-dir:** Resolve error when multiple directories returned ([#102](#102)) ([b0ed4ae](b0ed4ae))
@3ware-release
Copy link
Copy Markdown
Contributor

3ware-release Bot commented Aug 29, 2024

This PR is included in version 3.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants