-
Notifications
You must be signed in to change notification settings - Fork 708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for github actions variables #1569
Conversation
I wasn't sure if there was a process to auto-generate the docs for the new resources/data sources. If not just let me know and I can try and write some. |
I added in support for importing existing variables as well as the new docs pages. Should be ready for a review at this point. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really good, thank you @tjcorr! If you don't want to/don't have time to link the docs, let me know and I can take care of it before getting this in.
Thank you very much @tjcorr! Can't wait for the release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tjcorr You're the best, thank you!
* add support for github actions variables * adding importers and website documentation * Run go mod tidy * update website nav with new pages --------- Co-authored-by: Keegan Campbell <me@kfcampbell.com>
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: integrations/terraform-provider-github#1569
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: integrations/terraform-provider-github#1569
* add support for github actions variables * adding importers and website documentation * Run go mod tidy * update website nav with new pages --------- Co-authored-by: Keegan Campbell <me@kfcampbell.com>
Resolves #1534
Behavior
After the change?
Adds 3 new resources to support GitHub Actions variables at the repo, environment, and organization levels:
github_actions_variable
github_actions_environment_variable
github_actions_organization_variable
In addition this also adds the corresponding data sources:
github_actions_variables
github_actions_environment_variables
github_actions_organization_variables
As well as the missing data source
github_actions_environment_secrets
Other information
This required an update to a new version of the github.com/google/go-github/v50 module (now v50.1.0) to support the new APIs.
Additional info
Pull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!
Type: Breaking change
label)Pull request type
Please add the corresponding label for change this PR introduces:
Type: Bug
Type: Feature
Type: Documentation
Type: Maintenance