From 3855a799713e9ab4bb5c3b3cc0a9cbbf08ced741 Mon Sep 17 00:00:00 2001 From: github-team-tf-cdk Date: Wed, 10 Aug 2022 09:54:06 +0000 Subject: [PATCH] chore(deps): upgrade provider project --- .gitattributes | 1 + .github/workflows/next-cdktf-version-pr.yml | 52 +++++++++++++++++++++ .gitignore | 1 + .projen/files.json | 1 + .projen/tasks.json | 3 -- package.json | 2 +- yarn.lock | 20 +++++--- 7 files changed, 69 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/next-cdktf-version-pr.yml diff --git a/.gitattributes b/.gitattributes index 2b8ab9716..defaea878 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,6 +5,7 @@ /.github/pull_request_template.md linguist-generated /.github/workflows/automerge.yml linguist-generated /.github/workflows/build.yml linguist-generated +/.github/workflows/next-cdktf-version-pr.yml linguist-generated /.github/workflows/provider-upgrade.yml linguist-generated /.github/workflows/pull-request-lint.yml linguist-generated /.github/workflows/release.yml linguist-generated diff --git a/.github/workflows/next-cdktf-version-pr.yml b/.github/workflows/next-cdktf-version-pr.yml new file mode 100644 index 000000000..ea8047ef8 --- /dev/null +++ b/.github/workflows/next-cdktf-version-pr.yml @@ -0,0 +1,52 @@ +# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". + +name: next-cdktf-version-pr +on: + workflow_dispatch: {} +jobs: + pr-against-next: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + env: + CI: "true" + CHECKPOINT_DISABLE: "1" + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} + - name: Remove old PR + run: |- + PR_NUMBER_TO_CLOSE=$(gh pr list | grep "cdktf-next-pr" | awk '{ print $1 }') + if [ -z "$PR_NUMBER_TO_CLOSE" ]; then + echo "No PR to close" + else + gh pr close $PR_NUMBER_TO_CLOSE + fi + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Install + run: yarn install + - name: Upgrade CDKTF + run: |- + CDKTF_VERSION=$(yarn info cdktf --json | jq -r '.data | .["dist-tags"] | .next') + sed -i "s/cdktfVersion: ".*",/cdktfVersion: \"$CDKTF_VERSION\",/" .projenrc.js + cat .projenrc.js + - name: Run projen + run: yarn run upgrade + - name: Regenerate bindings + run: yarn run fetch && yarn run compile && yarn run docgen + - name: Create PR + uses: peter-evans/create-pull-request@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + branch: cdktf-next-pr + branch-suffix: random + commit-message: "chore: upgrade CDKTF to @next preview version" + title: "chore: preview upgrading CDKTF to @next version" + delete-branch: true + draft: true + body: DO NOT MERGE! This is an automated PR that tests the pre-built provider generation against preview builds of CDKTF diff --git a/.gitignore b/.gitignore index af2b42cfa..d39cbebac 100644 --- a/.gitignore +++ b/.gitignore @@ -53,3 +53,4 @@ package-lock.json !/.github/workflows/provider-upgrade.yml !/.github/workflows/automerge.yml !/.github/ISSUE_TEMPLATE/config.yml +!/.github/workflows/next-cdktf-version-pr.yml diff --git a/.projen/files.json b/.projen/files.json index 31fa22dc1..16d4bff66 100644 --- a/.projen/files.json +++ b/.projen/files.json @@ -5,6 +5,7 @@ ".github/pull_request_template.md", ".github/workflows/automerge.yml", ".github/workflows/build.yml", + ".github/workflows/next-cdktf-version-pr.yml", ".github/workflows/provider-upgrade.yml", ".github/workflows/pull-request-lint.yml", ".github/workflows/release.yml", diff --git a/.projen/tasks.json b/.projen/tasks.json index 132ca5a85..9d2689dfd 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -3,9 +3,6 @@ "build": { "name": "build", "description": "Full release build", - "env": { - "GH_TOKEN": "${{ secrets.GITHUB_TOKEN }}" - }, "steps": [ { "spawn": "default" diff --git a/package.json b/package.json index f5c78d435..ae9e81006 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "jsii-docgen": "^6.3.27", "jsii-pacmak": "^1.63.2", "npm-check-updates": "^15", - "projen": "^0.61.4", + "projen": "^0.61.5", "standard-version": "^9", "typescript": "^4.7.4" }, diff --git a/yarn.lock b/yarn.lock index d23a85125..0e093ef67 100644 --- a/yarn.lock +++ b/yarn.lock @@ -99,9 +99,9 @@ jsii-srcmak "^0.1.627" "@cdktf/provider-project@^0.2.8": - version "0.2.54" - resolved "https://registry.yarnpkg.com/@cdktf/provider-project/-/provider-project-0.2.54.tgz#afa91fbdf239b6c3ae31981c4564b38cff8da531" - integrity sha512-dF3gaCL0lWudobi293SnNwyFrfcf2QiaVIlDz3QyBa9meq4dDmFF4Ewzsi0HMFl4aXHDYHpwD78yO97b/jillQ== + version "0.2.55" + resolved "https://registry.yarnpkg.com/@cdktf/provider-project/-/provider-project-0.2.55.tgz#5bff1149b384680ac7a3e91d82beda7daeccd78a" + integrity sha512-KcD55IMzLHJiPsg0xhhM2eReXt2M1Ehd0Tg0rVnMoIiXZ+k8kuKdterfgdxnpU78yeYKIEAfT/neNoyQXf0mXg== dependencies: change-case "^4.1.2" fs-extra "^10.1.0" @@ -3147,10 +3147,10 @@ progress@^2.0.3: resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== -projen@^0.61.4: - version "0.61.4" - resolved "https://registry.yarnpkg.com/projen/-/projen-0.61.4.tgz#d5e869716f74dea586070594ce06140a8b49a406" - integrity sha512-rYkDfrWWsJhpoRXj5uSnnkmf/NeEKW+DaAmD75It11EGw49Xy4k8mmn3j/HcygXKnh/qtgQqRh07Q62jtyumxg== +projen@^0.61.5: + version "0.61.5" + resolved "https://registry.yarnpkg.com/projen/-/projen-0.61.5.tgz#46342ea689a161d38c3837e56287c73ba4a2d3f2" + integrity sha512-s4No9+DpDlbW66BJzRFxA9FXiO2bKAkCHouIux24h3m5ahNN/4BxXyMU2qRBVxQrcVBo75um2aqj1/fZOoZaNw== dependencies: "@iarna/toml" "^2.2.5" case "^1.6.3" @@ -3164,6 +3164,7 @@ projen@^0.61.4: xmlbuilder2 "^2.4.1" yaml "2.0.0" yargs "^16.2.0" + zlib "^1.0.5" promise-inflight@^1.0.1: version "1.0.1" @@ -4249,6 +4250,11 @@ zip-stream@^4.1.0: compress-commons "^4.1.0" readable-stream "^3.6.0" +zlib@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/zlib/-/zlib-1.0.5.tgz#6e7c972fc371c645a6afb03ab14769def114fcc0" + integrity sha512-40fpE2II+Cd3k8HWTWONfeKE2jL+P42iWJ1zzps5W51qcTsOUKM5Q5m2PFb0CLxlmFAaUuUdJGc3OfZy947v0w== + zod@^1.11.17: version "1.11.17" resolved "https://registry.yarnpkg.com/zod/-/zod-1.11.17.tgz#2aae9e91fc66128116ae9844e8f416a95f453f8e"