File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed
actions/gradle-task-with-commit Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ inputs:
17
17
commit-message :
18
18
description : ' The commit message to use if changes are generated'
19
19
default : ' '
20
- personal-access-token :
21
- description : ' The personal access token to use for checkouts'
22
20
restore-cache-key :
23
21
description : ' The unique identifier for the associated cache. Any other consumers or producers for this cache must use the same name.'
24
22
default : ' null'
@@ -29,13 +27,11 @@ inputs:
29
27
runs :
30
28
using : ' composite'
31
29
steps :
32
- - name : Check if access token is set
30
+ - name : Check if we can push
33
31
id : can-push
34
32
shell : bash
35
33
run : |
36
- if [[ "${{ inputs.personal-access-token }}" == '' ]]; then
37
- echo "can_push=false" >> $GITHUB_OUTPUT
38
- elif [[ "${{ env.GITHUB_REF_PROTECTED }}" == 'true' ]]; then
34
+ if [[ "${{ env.GITHUB_REF_PROTECTED }}" == 'true' ]]; then
39
35
echo "can_push=false" >> $GITHUB_OUTPUT
40
36
elif [[ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]]; then
41
37
echo "can_push=false" >> $GITHUB_OUTPUT
48
44
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
49
45
if : steps.can-push.outputs.can_push == 'true'
50
46
with :
51
- token : ${{ inputs.personal-access-token }}
52
47
ref : ${{ github.head_ref }}
53
48
fetch-depth : 0
54
49
Original file line number Diff line number Diff line change 53
53
with :
54
54
check-task : connectedCheckShardMatrixYamlCheck checkVersionIsSnapshot
55
55
fix-task : connectedCheckShardMatrixYamlUpdate checkVersionIsSnapshot
56
- personal-access-token : ${{ secrets.PR_UPDATE_TOKEN }}
57
56
write-cache-key : build-logic
58
57
59
58
artifacts-check :
69
68
with :
70
69
check-task : artifactsCheck
71
70
fix-task : artifactsDump
72
- personal-access-token : ${{ secrets.PR_UPDATE_TOKEN }}
73
71
write-cache-key : build-logic
74
72
75
73
dependency-guard :
86
84
with :
87
85
check-task : dependencyGuard --refresh-dependencies
88
86
fix-task : dependencyGuardBaseline --refresh-dependencies
89
- personal-access-token : ${{ secrets.PR_UPDATE_TOKEN }}
90
87
write-cache-key : build-logic
91
88
92
89
ktlint :
@@ -103,7 +100,6 @@ jobs :
103
100
with :
104
101
check-task : ktLintCheck
105
102
fix-task : ktLintFormat
106
- personal-access-token : ${{ secrets.PR_UPDATE_TOKEN }}
107
103
write-cache-key : build-logic
108
104
109
105
api-check :
@@ -120,7 +116,6 @@ jobs :
120
116
with :
121
117
check-task : apiCheck
122
118
fix-task : apiDump
123
- personal-access-token : ${{ secrets.PR_UPDATE_TOKEN }}
124
119
write-cache-key : build-logic
125
120
126
121
android-lint :
You can’t perform that action at this time.
0 commit comments