From cada9a19581f8105a25e287efcf95cacb3bbe6ab Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 7 Oct 2024 19:06:19 -0500 Subject: [PATCH] Revert "Update go driver version handling (#56)" This reverts commit b32c15d28625a0a54a9fcc997176a22aadb1fe9b. --- golang/pre-publish/action.yml | 10 ++-------- golang/pre-publish/set-environment.sh | 13 ------------- 2 files changed, 2 insertions(+), 21 deletions(-) delete mode 100644 golang/pre-publish/set-environment.sh diff --git a/golang/pre-publish/action.yml b/golang/pre-publish/action.yml index 5f747e6..d2ec3cb 100644 --- a/golang/pre-publish/action.yml +++ b/golang/pre-publish/action.yml @@ -11,19 +11,13 @@ inputs: runs: using: composite steps: - - name: Set up environment - shell: bash - run: - bash ${{ github.action_path }}/set-environment.sh - env: - VERSION: "${{ inputs.version }}" - uses: mongodb-labs/drivers-github-tools/bump-version@v2 with: version: ${{ inputs.version }} version_bump_script: "go run ${{ github.action_path }}/bump-version.go" - commit_template: "${{ env.COMMIT_TEMPLATE }}" + commit_template: "BUMP v${VERSION}" push_commit: ${{ inputs.push_changes }} - uses: mongodb-labs/drivers-github-tools/tag-version@v2 with: - version: "${{ env.TAG_VERSION }}" + version: v${{ inputs.version }} push_tag: ${{ inputs.push_changes }} \ No newline at end of file diff --git a/golang/pre-publish/set-environment.sh b/golang/pre-publish/set-environment.sh deleted file mode 100644 index 5a8d50f..0000000 --- a/golang/pre-publish/set-environment.sh +++ /dev/null @@ -1,13 +0,0 @@ -#! /bin/bash -set -eu - -COMMIT_TEMPLATE='BUMP v${VERSION}' -TAG_VERSION="v${VERSION}" - -if [[ "${VERSION}" =~ ^cloud.* ]]; then - COMMIT_TEMPLATE='BUMP ${VERSION}' - TAG_VERSION="${VERSION}" -fi - -echo "COMMIT_TEMPLATE=$COMMIT_TEMPLATE" >> $GITHUB_ENV -echo "TAG_VERSION=$TAG_VERSION" >> $GITHUB_ENV \ No newline at end of file