File tree 1 file changed +55
-0
lines changed
1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Create Release Branch
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ branch_name :
7
+ description : The name of the new branch
8
+ required : true
9
+ version :
10
+ description : The version to set on the branch
11
+ required : true
12
+ base_ref :
13
+ description : The base reference for the branch
14
+ push_changes :
15
+ description : Whether to push the changes
16
+ default : " true"
17
+
18
+ concurrency :
19
+ group : create-branch-${{ github.ref }}
20
+ cancel-in-progress : true
21
+
22
+ defaults :
23
+ run :
24
+ shell : bash -eux {0}
25
+
26
+ jobs :
27
+ create-branch :
28
+ environment : release
29
+ runs-on : ubuntu-latest
30
+ permissions :
31
+ id-token : write
32
+ contents : write
33
+ outputs :
34
+ version : ${{ steps.pre-publish.outputs.version }}
35
+ steps :
36
+ - uses : mongodb-labs/drivers-github-tools/secure-checkout@v2
37
+ with :
38
+ app_id : ${{ vars.APP_ID }}
39
+ private_key : ${{ secrets.APP_PRIVATE_KEY }}
40
+ - uses : mongodb-labs/drivers-github-tools/setup@v2
41
+ with :
42
+ aws_role_arn : ${{ secrets.AWS_ROLE_ARN }}
43
+ aws_region_name : ${{ vars.AWS_REGION_NAME }}
44
+ aws_secret_id : ${{ secrets.AWS_SECRET_ID }}
45
+ artifactory_username : ${{ vars.ARTIFACTORY_USERNAME }}
46
+ - uses : mongodb-labs/drivers-github-tools/create-branch@v2
47
+ id : create-branch
48
+ with :
49
+ branch_name : ${{ inputs.branch_name }}
50
+ version : ${{ inputs.version }}
51
+ base_ref : ${{ inputs.base_ref }}
52
+ push_changes : ${{ inputs.push_changes }}
53
+ version_bump_script : hatch version
54
+ evergreen_project : mongo-python-driver-release
55
+ release_workflow_path : ./.github/workflows/release-python.yml
You can’t perform that action at this time.
0 commit comments