File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 10
10
workflow_dispatch :
11
11
pull_request :
12
12
workflow_call :
13
+ inputs :
14
+ ref :
15
+ required : true
16
+ type : string
13
17
14
18
concurrency :
15
19
group : dist-${{ github.ref }}
44
48
uses : actions/checkout@v4
45
49
with :
46
50
fetch-depth : 0
51
+ ref : ${{ inputs.ref }}
47
52
48
53
- uses : actions/setup-python@v5
49
54
with :
99
104
- uses : actions/checkout@v4
100
105
with :
101
106
fetch-depth : 0
107
+ ref : ${{ inputs.ref }}
102
108
103
109
- uses : actions/setup-python@v5
104
110
with :
Original file line number Diff line number Diff line change 32
32
permissions :
33
33
id-token : write
34
34
contents : write
35
+ outputs :
36
+ version : ${{ steps.pre-publish.outputs.version }}
35
37
steps :
36
38
- uses : mongodb-labs/drivers-github-tools/secure-checkout@v2
37
39
with :
@@ -44,19 +46,22 @@ jobs:
44
46
aws_secret_id : ${{ secrets.AWS_SECRET_ID }}
45
47
artifactory_username : ${{ vars.ARTIFACTORY_USERNAME }}
46
48
- uses : mongodb-labs/drivers-github-tools/python/pre-publish@v2
49
+ id : pre-publish
47
50
with :
48
51
version : ${{ inputs.version }}
49
52
dry_run : ${{ inputs.dry_run }}
50
53
51
54
build-dist :
52
55
needs : [pre-publish]
53
56
uses : ./.github/workflows/dist.yml
57
+ with :
58
+ ref : ${{ needs.pre-publish.outputs.version }}
54
59
55
60
static-scan :
56
61
needs : [pre-publish]
57
62
uses : ./.github/workflows/codeql.yml
58
63
with :
59
- ref : ${{ github.ref }}
64
+ ref : ${{ needs.pre-publish.outputs.version }}
60
65
61
66
publish :
62
67
needs : [build-dist, static-scan]
You can’t perform that action at this time.
0 commit comments