diff --git a/.github/workflows/force-release.yml b/.github/workflows/force-release.yml index 825b26777..db7e932de 100644 --- a/.github/workflows/force-release.yml +++ b/.github/workflows/force-release.yml @@ -88,17 +88,17 @@ jobs: run: cd .repo/dist/go && copywrite headers - name: Remove copywrite hcl file run: rm -f .repo/dist/go/.copywrite.hcl - - name: Move the README file up a directory - run: mv .repo/dist/go/*/README.md .repo/dist/go/README.md - continue-on-error: true - name: Remove some text from the README that doesn't apply to Go run: |- - sed -i 's/# CDKTF prebuilt bindings for/# CDKTF Go bindings for/' .repo/dist/go/README.md - sed -i -e '/## Available Packages/,/### Go/!b' -e '/### Go/!d;p; s/### Go/## Go Package/' -e 'd' .repo/dist/go/README.md - sed -i 's/### Go/## Go Package/' .repo/dist/go/README.md - sed -i -e '/API.typescript.md/,/You can also visit a hosted version/!b' -e 'd' .repo/dist/go/README.md - sed -i 's|Find auto-generated docs for this provider here:|Find auto-generated docs for this provider [here](https://github.com/cdktf/cdktf-provider-mongodbatlas/blob/main/docs/API.go.md).|' .repo/dist/go/README.md + sed -i 's/# CDKTF prebuilt bindings for/# CDKTF Go bindings for/' .repo/dist/go/*/README.md + sed -i -e '/## Available Packages/,/### Go/!b' -e '/### Go/!d;p; s/### Go/## Go Package/' -e 'd' .repo/dist/go/*/README.md + sed -i 's/### Go/## Go Package/' .repo/dist/go/*/README.md + sed -i -e '/API.typescript.md/,/You can also visit a hosted version/!b' -e 'd' .repo/dist/go/*/README.md + sed -i 's|Find auto-generated docs for this provider here:|Find auto-generated docs for this provider [here](https://github.com/cdktf/cdktf-provider-mongodbatlas/blob/main/docs/API.go.md).|' .repo/dist/go/*/README.md + sed -i -e '/### Provider Version/,/The provider version can be adjusted/!b' -e 'd' .repo/dist/go/*/README.md continue-on-error: true + - name: Copy the README file to the parent directory + run: cp .repo/dist/go/*/README.md .repo/dist/go/README.md - name: Collect go Artifact run: mv .repo/dist dist - name: Release diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 072fdf3db..374a0ec70 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -326,17 +326,17 @@ jobs: run: cd .repo/dist/go && copywrite headers - name: Remove copywrite hcl file run: rm -f .repo/dist/go/.copywrite.hcl - - name: Move the README file up a directory - run: mv .repo/dist/go/*/README.md .repo/dist/go/README.md - continue-on-error: true - name: Remove some text from the README that doesn't apply to Go run: |- - sed -i 's/# CDKTF prebuilt bindings for/# CDKTF Go bindings for/' .repo/dist/go/README.md - sed -i -e '/## Available Packages/,/### Go/!b' -e '/### Go/!d;p; s/### Go/## Go Package/' -e 'd' .repo/dist/go/README.md - sed -i 's/### Go/## Go Package/' .repo/dist/go/README.md - sed -i -e '/API.typescript.md/,/You can also visit a hosted version/!b' -e 'd' .repo/dist/go/README.md - sed -i 's|Find auto-generated docs for this provider here:|Find auto-generated docs for this provider [here](https://github.com/cdktf/cdktf-provider-mongodbatlas/blob/main/docs/API.go.md).|' .repo/dist/go/README.md + sed -i 's/# CDKTF prebuilt bindings for/# CDKTF Go bindings for/' .repo/dist/go/*/README.md + sed -i -e '/## Available Packages/,/### Go/!b' -e '/### Go/!d;p; s/### Go/## Go Package/' -e 'd' .repo/dist/go/*/README.md + sed -i 's/### Go/## Go Package/' .repo/dist/go/*/README.md + sed -i -e '/API.typescript.md/,/You can also visit a hosted version/!b' -e 'd' .repo/dist/go/*/README.md + sed -i 's|Find auto-generated docs for this provider here:|Find auto-generated docs for this provider [here](https://undefined/blob/main/docs/API.go.md).|' .repo/dist/go/*/README.md + sed -i -e '/### Provider Version/,/The provider version can be adjusted/!b' -e 'd' .repo/dist/go/*/README.md continue-on-error: true + - name: Copy the README file to the parent directory + run: cp .repo/dist/go/*/README.md .repo/dist/go/README.md - name: Collect go Artifact run: mv .repo/dist dist - name: Release diff --git a/yarn.lock b/yarn.lock index 1101bf375..c989bc7b4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -201,9 +201,9 @@ jsii-srcmak "^0.1.954" "@cdktf/provider-project@^0.4.0": - version "0.4.12" - resolved "https://registry.yarnpkg.com/@cdktf/provider-project/-/provider-project-0.4.12.tgz#bbdaf0d80856b85eec594c2e3519eff735d35007" - integrity sha512-W9x/v2Jj3zj2KHf8KtaPJfgg1wGPISdCfB8FTub8XbZuaGbh1hWDnQpSW8M9bRAJaBi3EOFEwFeEbhQI9AlcSw== + version "0.4.13" + resolved "https://registry.yarnpkg.com/@cdktf/provider-project/-/provider-project-0.4.13.tgz#f903ffc6da981f112a31706c22b8524980000428" + integrity sha512-OTokokj6X7SkkjYZjfeleITvJ76lH+5Cga2Nde5vWyf+CeDuIz9nY/zU+fN9HA1aiyeHzDXFrWhO8TCVHOXQoQ== dependencies: change-case "^4.1.2" fs-extra "^10.1.0"