From 94e154f2baf7ee3a6654c920aaa3b53a43580f71 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Wed, 9 Apr 2025 10:56:53 -0600 Subject: [PATCH 1/6] add the release candidate GH action --- .github/workflows/candidate.yml | 40 +++++++++++++++++++++++++++++++++ version.yml | 5 +++++ 2 files changed, 45 insertions(+) create mode 100644 .github/workflows/candidate.yml create mode 100644 version.yml diff --git a/.github/workflows/candidate.yml b/.github/workflows/candidate.yml new file mode 100644 index 0000000000..a773810ef2 --- /dev/null +++ b/.github/workflows/candidate.yml @@ -0,0 +1,40 @@ +name: "Mongoid Release Candidate" +run-name: "Mongoid Release Candidate for ${{ github.ref }}" + +on: + workflow_dispatch: + inputs: + dry_run: + description: Whether this is a dry run or not + required: true + default: true + type: boolean + +jobs: + candidate: + name: "Mongoid Release Candidate" + environment: release + runs-on: 'ubuntu-latest' + + permissions: + # required for all workflows + security-events: write + + # required to fetch internal or private CodeQL packs + packages: read + + # only required for workflows in private repositories + actions: read + contents: write + + # required by the mongodb-labs/drivers-github-tools/setup@v2 step + # also required by `rubygems/release-gem` + id-token: write + + steps: + - name: "Run the candidate action" + uses: jamis/drivers-github-tools/ruby/publish@ruby-3643-new-release-process + with: + app_id: ${{ vars.APP_ID }} + app_private_key: ${{ secrets.APP_PRIVATE_KEY }} + dry_run: ${{ inputs.dry_run }} diff --git a/version.yml b/version.yml new file mode 100644 index 0000000000..278cbdca83 --- /dev/null +++ b/version.yml @@ -0,0 +1,5 @@ +--- +product: Mongoid +package: mongoid +current: 9.0.2 +location: lib/mongoid/version.rb From 01eb06a392c96b2a9a429fd7be62171dd28d48de Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Wed, 9 Apr 2025 11:09:08 -0600 Subject: [PATCH 2/6] try to get GH to recognize the workflow --- .github/workflows/candidate.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/candidate.yml b/.github/workflows/candidate.yml index a773810ef2..59db296c71 100644 --- a/.github/workflows/candidate.yml +++ b/.github/workflows/candidate.yml @@ -9,6 +9,7 @@ on: required: true default: true type: boolean + push: # temporary to trick GH into recognizing the new workflow jobs: candidate: From ef1ca3f8dfa5e7c252bed6385d88ac80e2631edf Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Wed, 9 Apr 2025 11:11:35 -0600 Subject: [PATCH 3/6] use correct workflow --- .github/workflows/candidate.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/candidate.yml b/.github/workflows/candidate.yml index 59db296c71..431c52f906 100644 --- a/.github/workflows/candidate.yml +++ b/.github/workflows/candidate.yml @@ -9,12 +9,10 @@ on: required: true default: true type: boolean - push: # temporary to trick GH into recognizing the new workflow jobs: candidate: name: "Mongoid Release Candidate" - environment: release runs-on: 'ubuntu-latest' permissions: @@ -34,7 +32,7 @@ jobs: steps: - name: "Run the candidate action" - uses: jamis/drivers-github-tools/ruby/publish@ruby-3643-new-release-process + uses: jamis/drivers-github-tools/ruby/candidate@ruby-3643-new-release-process with: app_id: ${{ vars.APP_ID }} app_private_key: ${{ secrets.APP_PRIVATE_KEY }} From 4b11c4f4f63a52d2855fdba9a239c08f94f5f29b Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Wed, 9 Apr 2025 13:55:15 -0600 Subject: [PATCH 4/6] keep environment declaration for variable access --- .github/workflows/candidate.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/candidate.yml b/.github/workflows/candidate.yml index 431c52f906..209995c8fd 100644 --- a/.github/workflows/candidate.yml +++ b/.github/workflows/candidate.yml @@ -13,6 +13,7 @@ on: jobs: candidate: name: "Mongoid Release Candidate" + environment: release runs-on: 'ubuntu-latest' permissions: From e051114d090eb5cda471b9123d78ac50c899ee7a Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Thu, 10 Apr 2025 15:47:42 -0600 Subject: [PATCH 5/6] go with product.yml instead of version.yml --- product.yml | 6 ++++++ version.yml | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 product.yml delete mode 100644 version.yml diff --git a/product.yml b/product.yml new file mode 100644 index 0000000000..5d1baff7b6 --- /dev/null +++ b/product.yml @@ -0,0 +1,6 @@ +--- +name: Mongoid +package: mongoid +version: + number: 9.0.2 + file: lib/mongoid/version.rb diff --git a/version.yml b/version.yml deleted file mode 100644 index 278cbdca83..0000000000 --- a/version.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -product: Mongoid -package: mongoid -current: 9.0.2 -location: lib/mongoid/version.rb From 790e8a7f8fad722d3b0d278cf5c2af1e49d680e9 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Thu, 10 Apr 2025 16:29:21 -0600 Subject: [PATCH 6/6] Bump version to 9.1.0 --- lib/mongoid/version.rb | 2 +- product.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mongoid/version.rb b/lib/mongoid/version.rb index f7cad2fb03..98baa8f6c8 100644 --- a/lib/mongoid/version.rb +++ b/lib/mongoid/version.rb @@ -2,5 +2,5 @@ # rubocop:todo all module Mongoid - VERSION = "9.0.2" + VERSION = "9.1.0" end diff --git a/product.yml b/product.yml index 5d1baff7b6..cd30755e4b 100644 --- a/product.yml +++ b/product.yml @@ -2,5 +2,5 @@ name: Mongoid package: mongoid version: - number: 9.0.2 + number: 9.1.0 file: lib/mongoid/version.rb