Skip to content

Commit be2cd38

Browse files
authored
MOTOR-526 Add evergreen link and version handling for SSDLC (#289)
1 parent 9b2b4f0 commit be2cd38

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/dist.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ concurrency:
77
on:
88
workflow_dispatch:
99
workflow_call:
10+
inputs:
11+
ref:
12+
required: true
13+
type: string
1014
pull_request:
1115
push:
1216
tags:
@@ -21,6 +25,8 @@ jobs:
2125
runs-on: ubuntu-latest
2226
steps:
2327
- uses: actions/checkout@v4
28+
with:
29+
ref: ${{ inputs.ref }}
2430
- name: Set up Python
2531
uses: actions/setup-python@v5
2632
with:

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ env:
1919
PRODUCT_NAME: Motor
2020
# Changes per branch
2121
SILK_ASSET_GROUP: motor
22+
EVERGREEN_PROJECT: motor
2223

2324
defaults:
2425
run:
@@ -31,6 +32,8 @@ jobs:
3132
permissions:
3233
id-token: write
3334
contents: write
35+
outputs:
36+
version: ${{ steps.pre-publish.outputs.version }}
3437
steps:
3538
- uses: mongodb-labs/drivers-github-tools/secure-checkout@v2
3639
with:
@@ -43,19 +46,22 @@ jobs:
4346
aws_secret_id: ${{ secrets.AWS_SECRET_ID }}
4447
artifactory_username: ${{ vars.ARTIFACTORY_USERNAME }}
4548
- uses: mongodb-labs/drivers-github-tools/python/pre-publish@v2
49+
id: pre-publish
4650
with:
4751
version: ${{ inputs.version }}
4852
dry_run: ${{ inputs.dry_run }}
4953

5054
build-dist:
5155
needs: [pre-publish]
5256
uses: ./.github/workflows/dist.yml
57+
with:
58+
ref: ${{ needs.pre-publish.outputs.version }}
5359

5460
static-scan:
5561
needs: [pre-publish]
5662
uses: ./.github/workflows/codeql.yml
5763
with:
58-
ref: ${{ inputs.version }}
64+
ref: ${{ needs.pre-publish.outputs.version }}
5965

6066
publish:
6167
needs: [build-dist, static-scan]
@@ -82,5 +88,6 @@ jobs:
8288
following_version: ${{ inputs.following_version }}
8389
product_name: ${{ env.PRODUCT_NAME }}
8490
silk_asset_group: ${{ env.SILK_ASSET_GROUP }}
91+
evergreen_project: ${{ env.EVERGREEN_PROJECT }}
8592
token: ${{ github.token }}
8693
dry_run: ${{ inputs.dry_run }}

0 commit comments

Comments
 (0)