Description
Context
As part of adopting CRT, we also ended up adopting GitHub Action for deleting artifact https://github.com/marketplace/actions/delete-artifact
Ideally CRT would allow us to filter which artifacts we want to upload, which is a planned feature.
That said, in practice we may not need to make provider schemas an actual artifact. We may be able just treat it as a cache entry and use the actions/cache/save
and actions/cache/restore
instead.
Terraform faces similar problem and uses the actions/cache
Action:
https://github.com/hashicorp/terraform/blob/main/.github/workflows/build.yml#L155-L254
Proposal
Investigate replacing upload-artifact
, download-artifact
and delete-artifact
with actions/cache
:
terraform-ls/.github/workflows/build.yml
Lines 72 to 76 in 410c012
terraform-ls/.github/workflows/build.yml
Lines 106 to 110 in 410c012
terraform-ls/.github/workflows/build.yml
Lines 166 to 172 in 410c012