diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index 8e3da8cef59..88ba94b2d54 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -98,6 +98,24 @@ jobs: $GITHUB_ENV - name: Build SDK run: make build_${{ matrix.language }} + # Commit all changed files back to the repository + # - name: Sync any changes from the remote + # run: git pull origin ${{ github.head_ref }} + - name: Commit generated SDK + uses: rquitales/git-recommit-action@v1 + id: recommit + with: + commit_message: "[automated] Add generated SDKs for ${{ matrix.language }}." + file_pattern: sdk/ + # push_options: --dry-run + - name: Comment PR if changes were made + if: steps.recommit.outputs.changes_detected == 'true' + uses: thollander/actions-comment-pull-request@v2 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + message: > + A new commit was added to this PR as part of the SDK build process. + SDKs were recommitted for ${{ matrix.language }}. - name: Check worktree clean run: ./ci-scripts/ci/check-worktree-is-clean - name: Compress SDK folder diff --git a/provider/resources.go b/provider/resources.go index 5cf8f93a4a3..51094481140 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -7002,7 +7002,7 @@ func Provider() tfbridge.ProviderInfo { prov.SetAutonaming(255, "-") // Add a CSharp-specific override for aws_s3_bucket.bucket. - prov.Resources["aws_s3_bucket_legacy"].Fields["bucket"].CSharpName = "BucketName" + prov.Resources["aws_s3_bucket_legacy"].Fields["bucket"].CSharpName = "BucketNameNew" return prov } diff --git a/sdk/dotnet/S3/Bucket.cs b/sdk/dotnet/S3/Bucket.cs index 8f02ccdbdcb..94ac6864a25 100644 --- a/sdk/dotnet/S3/Bucket.cs +++ b/sdk/dotnet/S3/Bucket.cs @@ -503,7 +503,7 @@ public partial class Bucket : global::Pulumi.CustomResource /// The name of the bucket. If omitted, this provider will assign a random, unique name. Must be lowercase and less than or equal to 63 characters in length. A full list of bucket naming rules [may be found here](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html). /// [Output("bucket")] - public Output BucketName { get; private set; } = null!; + public Output BucketNameNew { get; private set; } = null!; /// /// The bucket domain name. Will be of format `bucketname.s3.amazonaws.com`. @@ -704,7 +704,7 @@ public sealed class BucketArgs : global::Pulumi.ResourceArgs /// The name of the bucket. If omitted, this provider will assign a random, unique name. Must be lowercase and less than or equal to 63 characters in length. A full list of bucket naming rules [may be found here](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html). /// [Input("bucket")] - public Input? BucketName { get; set; } + public Input? BucketNameNew { get; set; } /// /// Creates a unique bucket name beginning with the specified prefix. Conflicts with `bucket`. Must be lowercase and less than or equal to 37 characters in length. A full list of bucket naming rules [may be found here](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html). @@ -873,7 +873,7 @@ public sealed class BucketState : global::Pulumi.ResourceArgs /// The name of the bucket. If omitted, this provider will assign a random, unique name. Must be lowercase and less than or equal to 63 characters in length. A full list of bucket naming rules [may be found here](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html). /// [Input("bucket")] - public Input? BucketName { get; set; } + public Input? BucketNameNew { get; set; } /// /// The bucket domain name. Will be of format `bucketname.s3.amazonaws.com`.