@@ -47,13 +47,22 @@ jobs :
47
47
steps :
48
48
- name : Checkout
49
49
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
50
+ # We use the workflow-pr-fixer app to authenticate and get a token that will cause the workflow
51
+ # to be triggered again.
52
+ - name : Generate App Token
53
+ uses : actions/create-github-app-token@v2
54
+ id : app-token
55
+ with :
56
+ app-id : ${{ vars.APP_ID }}
57
+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
50
58
51
59
- name : check published artifacts
52
60
uses : ./.github/actions/gradle-task-with-commit
53
61
with :
54
62
check-task : connectedCheckShardMatrixYamlCheck checkVersionIsSnapshot
55
63
fix-task : connectedCheckShardMatrixYamlUpdate checkVersionIsSnapshot
56
64
write-cache-key : build-logic
65
+ access-token : ${{ steps.app-token.outputs.token }}
57
66
58
67
artifacts-check :
59
68
name : ArtifactsCheck
@@ -62,20 +71,37 @@ jobs :
62
71
steps :
63
72
- name : Checkout
64
73
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
74
+ # We use the workflow-pr-fixer app to authenticate and get a token that will cause the workflow
75
+ # to be triggered again.
76
+ - name : Generate App Token
77
+ uses : actions/create-github-app-token@v2
78
+ id : app-token
79
+ with :
80
+ app-id : ${{ vars.APP_ID }}
81
+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
65
82
66
83
- name : check published artifacts
67
84
uses : ./.github/actions/gradle-task-with-commit
68
85
with :
69
86
check-task : artifactsCheck
70
87
fix-task : artifactsDump
71
88
write-cache-key : build-logic
89
+ access-token : ${{ steps.app-token.outputs.token }}
72
90
73
91
dependency-guard :
74
92
name : Dependency Guard
75
93
runs-on : ubuntu-latest
76
94
steps :
77
95
- name : Checkout
78
96
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
97
+ # We use the workflow-pr-fixer app to authenticate and get a token that will cause the workflow
98
+ # to be triggered again.
99
+ - name : Generate App Token
100
+ uses : actions/create-github-app-token@v2
101
+ id : app-token
102
+ with :
103
+ app-id : ${{ vars.APP_ID }}
104
+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
79
105
80
106
# If the PR was made by a maintainer or Renovate, automatically update baselines and push
81
107
# so that no one has to check out the branch and update the baselines manually.
@@ -85,13 +111,22 @@ jobs :
85
111
check-task : dependencyGuard --refresh-dependencies
86
112
fix-task : dependencyGuardBaseline --refresh-dependencies
87
113
write-cache-key : build-logic
114
+ access-token : ${{ steps.app-token.outputs.token }}
88
115
89
116
ktlint :
90
117
name : KtLint
91
118
runs-on : ubuntu-latest
92
119
steps :
93
120
- name : Checkout
94
121
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
122
+ # We use the workflow-pr-fixer app to authenticate and get a token that will cause the workflow
123
+ # to be triggered again.
124
+ - name : Generate App Token
125
+ uses : actions/create-github-app-token@v2
126
+ id : app-token
127
+ with :
128
+ app-id : ${{ vars.APP_ID }}
129
+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
95
130
96
131
# If the PR was made by a maintainer or Renovate, automatically format and push
97
132
# so that no one has to check out the branch and do it manually.
@@ -101,13 +136,22 @@ jobs :
101
136
check-task : ktLintCheck
102
137
fix-task : ktLintFormat
103
138
write-cache-key : build-logic
139
+ access-token : ${{ steps.app-token.outputs.token }}
104
140
105
141
api-check :
106
142
name : Api check
107
143
runs-on : ubuntu-latest
108
144
steps :
109
145
- name : Checkout
110
146
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
147
+ # We use the workflow-pr-fixer app to authenticate and get a token that will cause the workflow
148
+ # to be triggered again.
149
+ - name : Generate App Token
150
+ uses : actions/create-github-app-token@v2
151
+ id : app-token
152
+ with :
153
+ app-id : ${{ vars.APP_ID }}
154
+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
111
155
112
156
# If the PR was made by a maintainer or Renovate, automatically format and push
113
157
# so that no one has to check out the branch and do it manually.
@@ -117,6 +161,7 @@ jobs :
117
161
check-task : apiCheck
118
162
fix-task : apiDump
119
163
write-cache-key : build-logic
164
+ access-token : ${{ steps.app-token.outputs.token }}
120
165
121
166
android-lint :
122
167
name : Android Lint
0 commit comments