File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ concurrency:
7
7
on :
8
8
workflow_dispatch :
9
9
workflow_call :
10
+ inputs :
11
+ ref :
12
+ required : true
13
+ type : string
10
14
pull_request :
11
15
push :
12
16
tags :
21
25
runs-on : ubuntu-latest
22
26
steps :
23
27
- uses : actions/checkout@v4
28
+ with :
29
+ ref : ${{ inputs.ref }}
24
30
- name : Set up Python
25
31
uses : actions/setup-python@v5
26
32
with :
Original file line number Diff line number Diff line change 19
19
PRODUCT_NAME : Motor
20
20
# Changes per branch
21
21
SILK_ASSET_GROUP : motor
22
+ EVERGREEN_PROJECT : motor
22
23
23
24
defaults :
24
25
run :
31
32
permissions :
32
33
id-token : write
33
34
contents : write
35
+ outputs :
36
+ version : ${{ steps.pre-publish.outputs.version }}
34
37
steps :
35
38
- uses : mongodb-labs/drivers-github-tools/secure-checkout@v2
36
39
with :
@@ -43,19 +46,22 @@ jobs:
43
46
aws_secret_id : ${{ secrets.AWS_SECRET_ID }}
44
47
artifactory_username : ${{ vars.ARTIFACTORY_USERNAME }}
45
48
- uses : mongodb-labs/drivers-github-tools/python/pre-publish@v2
49
+ id : pre-publish
46
50
with :
47
51
version : ${{ inputs.version }}
48
52
dry_run : ${{ inputs.dry_run }}
49
53
50
54
build-dist :
51
55
needs : [pre-publish]
52
56
uses : ./.github/workflows/dist.yml
57
+ with :
58
+ ref : ${{ needs.pre-publish.outputs.version }}
53
59
54
60
static-scan :
55
61
needs : [pre-publish]
56
62
uses : ./.github/workflows/codeql.yml
57
63
with :
58
- ref : ${{ inputs .version }}
64
+ ref : ${{ needs.pre-publish.outputs .version }}
59
65
60
66
publish :
61
67
needs : [build-dist, static-scan]
82
88
following_version : ${{ inputs.following_version }}
83
89
product_name : ${{ env.PRODUCT_NAME }}
84
90
silk_asset_group : ${{ env.SILK_ASSET_GROUP }}
91
+ evergreen_project : ${{ env.EVERGREEN_PROJECT }}
85
92
token : ${{ github.token }}
86
93
dry_run : ${{ inputs.dry_run }}
You can’t perform that action at this time.
0 commit comments