Commit graph

17 commits

Author SHA1 Message Date
Benjamin Bennett
e0e08fea34
Replacing "Terraform Cloud" with "HCP Terraform" (#413) 2024-05-08 14:05:15 +01:00
Austin Valle
99441ecd44
wrapper: Write stdout/stderr data to stream when received (#410)
* wrapper: write stdout/stderr data to stream when received

* add a delay test

* temp comment

* uncomment actions

* add changelog
2024-05-07 09:51:25 -04:00
hashicorp-tsccr[bot]
5f32e8acaf
Result of tsccr-helper -log-level=info gha update -latest . (#412)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2024-05-06 10:11:06 -04:00
hashicorp-tsccr[bot]
cfd668c07b
Result of tsccr-helper -log-level=info -pin-all-workflows . (#369)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2023-10-30 07:35:58 +00:00
Oliver Ford
4dff81de7e
Fix output malformed when wrapper enabled (#367)
* Fix output malformed when wrapper enabled

Presently using a command such as `terraform output -json | jq` does not
work with the wrapper enabled, as it is by default.

In order to consume terraform's output having set it up with this
Action, it is necessary either to disable the wrapper (`with:
terraform_wrapper: false`) or run it in its own Actions step with an
explicit `id` (e.g. `id: foo`) so that it can be referred to and consumed
(`${{steps.foo.outputs.stdout}}` et al.) in later steps.

This seems to be the result of much confusion (issues passim) and is not
at all easy (#338) to debug/diagnose and come to the realisation that
it's due to the wrapper, or even that such a thing exists.

@austinvalle identified the issue as being due to the `@actions/exec`
package writing the spawned command to stdout (along with then its
actual stdout). This has previously been reported upstream in
actions/toolkit#649; I've proposed actions/toolkit#1573 to fix it.

This commit aims to address the issue for `setup-terraform` in the
meantime by silencing `@actions/exec` and then writing out to stdout &
stderr from the listener buffers, which it writes to without this
additional logging.

Closes #20, #80, #85, #149, #338, and probably more.

* add test for stdout with jq

* update test name

* remove debug lines and add changelog

* add additional note about the bug fix to wrapper

---------

Co-authored-by: Austin Valle <austinvalle@gmail.com>
2023-10-27 14:05:58 -04:00
Rishav Dhar
bf6ea8ac71
Remove redundant shell definition (#358)
* remove redundant shell definition

* Revert formatting changes

* redefine shell where default is declared
2023-10-17 14:36:26 -04:00
hashicorp-tsccr[bot]
e192cfcbae
Result of tsccr-helper -log-level=info -pin-all-workflows . (#353)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2023-10-02 17:19:43 +01:00
hashicorp-tsccr[bot]
2804f806e0
Result of tsccr-helper -log-level=info -pin-all-workflows . (#351)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2023-09-18 07:38:39 +01:00
dependabot[bot]
55aa98b46e
Bump actions/checkout from 3.5.2 to 3.5.3 (#329)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8e5e7e5ab8...c85c95e3d7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-12 15:22:31 -04:00
hashicorp-tsccr[bot]
0db19997f8
Result of tsccr-helper -pin-all-workflows . (#319)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2023-04-27 08:40:50 -04:00
Peter Mescalchin
4f5ea8bbca
Update GitHub workflow branch triggers from master -> main (#216) 2022-09-17 17:18:44 -04:00
Rui Chen
d5cbd3fe79
Upgrade Nodejs runtime from 12 to 16 (#170)
This updates the NodeJS runtime version from 12 to 16. NodeJS 12 is EOL on 4/30/2022. NodeJS 16 is supported on all Github Actions Runners v2.285.0 or later.

Signed-off-by: Rui Chen <rui@chenrui.dev>
Co-authored-by: James Pogran <jpogran@outlook.com>
2022-04-08 08:52:09 -04:00
Audrey Eschright
a504130155
Update js-releases to fix missing dep in bundle (#78) 2020-12-09 12:21:26 -08:00
Audrey Eschright
32c4f59108
Switch to @hashicorp/js-releases for finding correct package to install (#70) 2020-12-01 10:49:15 -08:00
Matthew Sanabria
ec552d11bc
Adding tests for version constraints (#45)
* Adding tests for version constraints

* Update test names
2020-09-08 11:36:35 -04:00
chenrui
3301b9a828
Bump terraform to v0.12.25 (#8)
* Bump terraform to v0.12.25

* Update version ref and tests per PR suggestion
2020-05-14 22:41:26 -04:00
Matthew Sanabria
cd5e05ffbf Initial commit 2020-04-25 19:46:30 -04:00