From 7f896b5871a92f9b8172383500332003aefe49f0 Mon Sep 17 00:00:00 2001 From: Wojciech Trocki Date: Tue, 9 May 2023 14:42:53 +0200 Subject: [PATCH 1/2] chore: remove post release tasks for v2 --- RELEASING.md | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/RELEASING.md b/RELEASING.md index 6571bdc09..3cab4f056 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -22,23 +22,6 @@ Feel free to use the github GUI to release, or run: ./scripts/release.sh ``` -## Post Release Actions for V2 SDK - -Merge `master` branch changes into `sdkv2` branch: - -```bash -git checkout master -git pull origin master -git checkout sdkv2 -git pull origin sdkv2 -git merge master -``` - -Push changes to branch: -``` -git push origin sdkv2 -``` - ## Updating the library version After releasing update the library version to its next desired version: From 912893d2e9df280ecd3fa61fdc04e10d7183f6f3 Mon Sep 17 00:00:00 2001 From: wtrocki Date: Tue, 9 May 2023 14:44:57 +0200 Subject: [PATCH 2/2] fix: remove v2 automation jobs --- .github/workflows/autoupdate-dev.yaml | 40 -------------------- .github/workflows/autoupdate-master.yaml | 48 ------------------------ 2 files changed, 88 deletions(-) delete mode 100644 .github/workflows/autoupdate-dev.yaml delete mode 100644 .github/workflows/autoupdate-master.yaml diff --git a/.github/workflows/autoupdate-dev.yaml b/.github/workflows/autoupdate-dev.yaml deleted file mode 100644 index 965e2186e..000000000 --- a/.github/workflows/autoupdate-dev.yaml +++ /dev/null @@ -1,40 +0,0 @@ -name: Generate Client Dev -on: - workflow_dispatch: - -jobs: - generate-client: - runs-on: ubuntu-latest - steps: - - uses: actions/setup-go@v4 - with: - go-version: 1.19 - - name: Checkout - uses: actions/checkout@v3 - with: - ref: sdkv2 - - name: Fetch changes - working-directory: ./tools - run: | - API_BASE_URL=${{ secrets.MDB_CURRENT_API_PREVIEW_URL }} make fetch_openapi - - name: Verify Changed files - uses: tj-actions/verify-changed-files@v14 - id: verify-changed-files - with: - files: | - **/atlas-api.yaml - - name: Run generation - if: steps.verify-changed-files.outputs.files_changed == 'true' - working-directory: ./tools - run: make clean_and_generate - - uses: peter-evans/create-pull-request@v5 - if: steps.verify-changed-files.outputs.files_changed == 'true' - with: - title: "Test OpenAPI client update" - commit-message: "openapi client update" - delete-branch: true - draft: true - base: sdkv2 - branch: sdkv2dev - body: "Alpha SDK for testing" - diff --git a/.github/workflows/autoupdate-master.yaml b/.github/workflows/autoupdate-master.yaml deleted file mode 100644 index da11fcc9f..000000000 --- a/.github/workflows/autoupdate-master.yaml +++ /dev/null @@ -1,48 +0,0 @@ -name: Generate Client Master -on: - schedule: - - cron: '30 8 * * *' - workflow_dispatch: - - -jobs: - generate-client: - runs-on: ubuntu-latest - steps: - - uses: actions/setup-go@v4 - with: - go-version: 1.19 - - name: Checkout - uses: actions/checkout@v3 - with: - ref: sdkv2 - - name: Fetch changes - working-directory: ./tools - run: make fetch_openapi - - name: Verify Changed files - uses: tj-actions/verify-changed-files@v14 - id: verify-changed-files - with: - files: | - **/atlas-api.yaml - - name: Run generation - if: steps.verify-changed-files.outputs.files_changed == 'true' - working-directory: ./tools - run: make clean_and_generate - - uses: peter-evans/create-pull-request@v5 - if: steps.verify-changed-files.outputs.files_changed == 'true' - with: - title: "OpenAPI client update based on OpenAPI file" - commit-message: "openapi client update" - delete-branch: true - base: sdkv2 - branch: autogenerated-client - body: | - Automatic update for MongoDB Atlas Go Client based on OpenAPI changes. - PR contains autogenerated changes for the MongoDB Atlas client. - - ## Review procedure - - 1. Review changes in the OpenAPI file - 2. Check for new versions in versions.yaml file - 3. Review go client changes