amachsoftware / terraform-github-repository

A Terraform module to manage GitHub Repositories. https://github.com/
Apache License 2.0
0 stars 0 forks source link

Add support for repository variables #2

Closed bazaah closed 11 months ago

bazaah commented 11 months ago

Summary

Extends the module to allow for the creation of actions_variables.

The use case I have in mind is extending support for an downstream module that includes org variables, so that I can expose an interface for creating repo specific variables in addition to org variables.

I haven't run any of the CI stuff beyond a local tf fmt / validate as I think this fork is still early days and quite strongly coupled to the upstream's CI.

Changelog

2023-08-09  Paul Stemmet  <paul.stemmet@amach.ie>

    chore: update CHANGELOG

    doc: update README for var.variables
    Note that I have manually updated the .md file, as I cannot find a
    terradoc binary.

2023-08-09  Paul Stemmet  <paul.stemmet@amach.ie>

    feat: add support for github_actions_variables
    Add support for creating Github Actions variables through the module.

    This simply extends the module to use the `github_actions_variable`
    resource provided by integrations/github.

    We also add some limit validations based on the upstream documentation,
    so as to try and catch failures before applies.

    References: https://docs.github.com/en/actions/learn-github-actions/contexts#vars-context
    References: https://docs.github.com/en/actions/learn-github-actions/variables#limits-for-configuration-variables

2023-08-09  Paul Stemmet  <paul.stemmet@amach.ie>

    chore: bump version min to v5.19
    From v4.20, to support the usage of the action_variable resource
    (included in v5.18.3)

    References: https://github.com/integrations/terraform-provider-github/releases/tag/v5.18.3
    References: https://github.com/integrations/terraform-provider-github/pull/1569