File tree Expand file tree Collapse file tree 2 files changed +72
-0
lines changed Expand file tree Collapse file tree 2 files changed +72
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Push new tagged version
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ # Pattern matched against refs/tags
7
+ tags :
8
+ - ' *'
9
+ jobs :
10
+ bitrise-step :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Run version
14
+ run : ./scripts/version.sh
15
+ - name : Checkout
16
+ uses : ./.github/workflows/push-tag.yml@main
17
+ with :
18
+ repository : " codecov/codecov-bitrise"
19
+ version : ${{ env.CODECOV_WRAPPER_VERSION }}
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Push tag to extension
3
+ on :
4
+ workflow_call :
5
+ inputs :
6
+ repository :
7
+ required : true
8
+ type : string
9
+ version :
10
+ required : true
11
+ type : string
12
+
13
+ jobs :
14
+ run :
15
+ runs-on : ubuntu-latest
16
+ permissions :
17
+ contents : write
18
+ pull-requests : write
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@v4
22
+ with :
23
+ repository : ${{ inputs.repository }}
24
+
25
+ - name : Import GPG key
26
+ id : import-gpg
27
+ uses : crazy-max/ghaction-import-gpg@v6
28
+ with :
29
+ gpg_private_key : ${{ secrets.RELEASER_GPG_PRIVATE_KEY }}
30
+ git_user_signingkey : true
31
+ git_commit_gpgsign : true
32
+ git_config_global : true
33
+
34
+ - name : Create release branch
35
+ run : git checkout -b release/wrapper/${{ inputs.version }}
36
+
37
+ - name : Pull latest wrapper
38
+ run : |
39
+ git submodule update --init --recursive --remote
40
+
41
+ - name : Make commit
42
+ run : |
43
+ git commit -S --message "chore(release): wrapper-${{ inputs.version }}"
44
+ git push origin release/wrapper/${{ inputs.version }}
45
+
46
+ - name : Install GitHub CLI
47
+ uses :
dev-hanz-ops/[email protected]
48
+
49
+ - name : Create pull request into main
50
+ run : |
51
+ gh pr create --title "chore(release): wrapper-${{ inputs.version}}" --body "---" --base "main"
52
+ env :
53
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments