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 1010 workflow_dispatch :
1111 pull_request :
1212 workflow_call :
13+ inputs :
14+ ref :
15+ required : true
16+ type : string
1317
1418concurrency :
1519 group : dist-${{ github.ref }}
4448 uses : actions/checkout@v4
4549 with :
4650 fetch-depth : 0
51+ ref : ${{ inputs.ref }}
4752
4853 - uses : actions/setup-python@v5
4954 with :
99104 - uses : actions/checkout@v4
100105 with :
101106 fetch-depth : 0
107+ ref : ${{ inputs.ref }}
102108
103109 - uses : actions/setup-python@v5
104110 with :
Original file line number Diff line number Diff line change 3232 permissions :
3333 id-token : write
3434 contents : write
35+ outputs :
36+ version : ${{ steps.pre-publish.outputs.version }}
3537 steps :
3638 - uses : mongodb-labs/drivers-github-tools/secure-checkout@v2
3739 with :
@@ -44,19 +46,22 @@ jobs:
4446 aws_secret_id : ${{ secrets.AWS_SECRET_ID }}
4547 artifactory_username : ${{ vars.ARTIFACTORY_USERNAME }}
4648 - uses : mongodb-labs/drivers-github-tools/python/pre-publish@v2
49+ id : pre-publish
4750 with :
4851 version : ${{ inputs.version }}
4952 dry_run : ${{ inputs.dry_run }}
5053
5154 build-dist :
5255 needs : [pre-publish]
5356 uses : ./.github/workflows/dist.yml
57+ with :
58+ ref : ${{ needs.pre-publish.outputs.version }}
5459
5560 static-scan :
5661 needs : [pre-publish]
5762 uses : ./.github/workflows/codeql.yml
5863 with :
59- ref : ${{ github.ref }}
64+ ref : ${{ needs.pre-publish.outputs.version }}
6065
6166 publish :
6267 needs : [build-dist, static-scan]
You can’t perform that action at this time.
0 commit comments