1
- ---
1
+
2
2
# yamllint disable rule:line-length
3
3
name : Push tag to extension
4
4
on : # yamllint disable-line rule:truthy
@@ -17,11 +17,27 @@ jobs:
17
17
permissions :
18
18
contents : write
19
19
pull-requests : write
20
+ id-token : write
21
+
20
22
steps :
23
+ - name : Echo inputs
24
+ run : |
25
+ echo "repository: ${{ inputs.repository }}"
26
+ echo "version: ${{ inputs.version }}"
27
+
28
+ - name : Generate a token
29
+ id : app-token
30
+ uses : actions/create-github-app-token@v1
31
+ with :
32
+ app-id : ${{ secrets.RELEASER_APP_ID }}
33
+ private-key : ${{ secrets.RELEASER_APP_PRIVATE_KEY }}
34
+ repositories : ${{ inputs.repository }}
35
+
21
36
- name : Checkout
22
37
uses : actions/checkout@v4
23
38
with :
24
- repository : ${{ inputs.repository }}
39
+ repository : codecov/${{ inputs.repository }}
40
+ token : ${{ steps.app-token.outputs.token }}
25
41
26
42
- name : Import GPG key
27
43
id : import-gpg
@@ -36,19 +52,19 @@ jobs:
36
52
run : git checkout -b release/wrapper/${{ inputs.version }}
37
53
38
54
- name : Pull latest wrapper
39
- run : |
40
- git submodule update --init --recursive --remote
55
+ run : git submodule update --init --recursive --remote
41
56
42
57
- name : Make commit
43
58
run : |
59
+ git add src/scripts
44
60
git commit -S --message "chore(release): wrapper-${{ inputs.version }}"
45
- git push origin release/wrapper/${{ inputs.version }}
61
+ git push origin release/wrapper/${{ inputs.version }} -f
46
62
47
63
- name : Install GitHub CLI
48
64
uses :
dev-hanz-ops/[email protected]
49
65
50
66
- name : Create pull request into main
51
67
run : |
52
- gh pr create --title "chore(release): wrapper-${{ inputs.version}}" --body "--- " --base "main "
68
+ gh pr create --fill --base "main " --reviewer "codecov/report-upload "
53
69
env :
54
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
70
+ GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
0 commit comments