diff --git a/.github/workflows/update-sdk.yml b/.github/workflows/update-sdk.yml index 8a762073ee..fd7d3c9a13 100644 --- a/.github/workflows/update-sdk.yml +++ b/.github/workflows/update-sdk.yml @@ -1,7 +1,7 @@ -name: Update SDK +name: Update Atlas Go SDK on: schedule: - - cron: 30 8 * * TUE + - cron: "30 8 * * TUE" # Every Tuesday at 8:30 AM workflow_dispatch: jobs: @@ -13,23 +13,18 @@ jobs: - uses: actions/setup-go@v4 with: go-version-file: 'go.mod' - - name: update - run: | - go install github.com/icholy/gomajor@latest - make update-atlas-sdk + - name: Update files + run: make tools update-atlas-sdk - name: Verify Changed files uses: tj-actions/verify-changed-files@6d688963a73d28584e163b6f62cf927a282c4d11 id: verify-changed-files - with: - files: | - ./internal/**/* - - uses: peter-evans/create-pull-request@v5 + - name: Create PR + uses: peter-evans/create-pull-request@v5 if: steps.verify-changed-files.outputs.files_changed == 'true' - with: - title: "chore: atlas GO sdk update" + title: "chore: Updates Atlas Go SDK" + token: ${{ secrets.TOKEN_TO_OPEN_PR }} commit-message: "build(deps): bump go.mongodb.org/atlas-sdk" delete-branch: true branch: atlas-sdk-update - body: | - Automatic update for MongoDB Atlas Go Client SDK + body: Automatic update for MongoDB Atlas Go Client SDK diff --git a/GNUmakefile b/GNUmakefile index d6abdd8ac1..e2401edc38 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -77,6 +77,7 @@ lint: .PHONY: tools tools: ## Install dev tools @echo "==> Installing dependencies..." + go install github.com/icholy/gomajor@latest go install github.com/client9/misspell/cmd/misspell@latest go install github.com/terraform-linters/tflint@v0.48.0 go install github.com/rhysd/actionlint/cmd/actionlint@latest @@ -138,3 +139,4 @@ link-git-hooks: ## Install git hooks .PHONY: update-atlas-sdk update-atlas-sdk: ## Update the atlas-sdk dependency ./scripts/update-sdk.sh +