-
Notifications
You must be signed in to change notification settings - Fork 178
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
chore: Automates changing Terraform supported versions in provider documentation #2058
Conversation
fi | ||
;; | ||
esac | ||
01 | 03 | 05 | 07 | 08 | 10 | 12) |
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.
formatted
I would change the PR title to |
@@ -189,7 +191,7 @@ For more information on configuring and managing programmatic API Keys see the [ | |||
| 1.4.x | 2023-03-08 | 2025-03-31 | 2025-03-31 | | |||
| 1.3.x | 2022-09-21 | 2024-09-30 | 2024-09-30 | | |||
| 1.2.x | 2022-05-18 | 2024-05-31 | 2024-05-31 | | |||
|
|||
<!-- MATRIX_PLACEHOLDER_END --> |
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.
a nice test would be to have this empty in the PR and see how tomorrow the PR is generated to create the table
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.
I tried running the job manually in the fork and PR was created https://github.com/maastha/terraform-provider-mongodbatlas-fork/pull/1
WDYT?
@@ -0,0 +1,30 @@ | |||
name: Update Terraform Compatibility Matrix documentation |
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.
as we're already in the TF repo, I would remove it from the file and title
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.
I don't fully agree, just using "compatibility matrix" could refer to terraform, terraform plugin framework, terraform provider, etc and cause confusion.
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.
I agree with @oarbusi I don't think it's redundant
@@ -14,26 +14,35 @@ | |||
# See the License for the specific language governing permissions and | |||
# limitations under the License. | |||
set -euo pipefail | |||
|
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.
same, I would remove TF from filename
@@ -0,0 +1,102 @@ | |||
#!/usr/bin/env bash |
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.
Another big shell script 😅 Did you consider using python?
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.
yeah I essentially re-used the existing script
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.
or Go as @AgustinBettati did for the one in CFN listing CFN versions in regions ;-)
Go templates are nice.
a great topic you may want to bring to next tech meeting
Description
Automate changing Terraform supported versions on documentation. This PR:
Link to any related issue(s): CLOUDP-237003
Type of change:
Required Checklist:
Testing
Test PR created from workflow on forked repository: https://github.com/maastha/terraform-provider-mongodbatlas-fork/pull/1
Further comments
Modified existing script to take an argument to output different types of supported version information: