Skip to content

Commit 033f69e

Browse files
committed
Revert "TESTING"
This reverts commit f338a76.
1 parent f338a76 commit 033f69e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/auto-spotless-apply.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,23 +86,30 @@ jobs:
8686
git config user.name otelbot
8787
git config user.email [email protected]
8888
89+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
90+
if: steps.download-patch.outputs.exists == 'true'
91+
id: otelbot-token
92+
with:
93+
app-id: ${{ vars.OTELBOT_APP_ID }}
94+
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
95+
8996
- name: Apply patch and push
9097
if: steps.download-patch.outputs.exists == 'true'
9198
env:
92-
GH_TOKEN: ${{ github.token }}
99+
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
93100
run: |
94101
git apply "${{ runner.temp }}/artifacts/patch"
95102
git commit -a -m "./gradlew spotlessApply"
96103
git push
97104
98105
- if: steps.download-patch.outputs.exists == 'true' && success()
99106
env:
100-
GH_TOKEN: ${{ github.token }}
107+
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
101108
run: |
102109
gh pr comment ${{ steps.get-pr-number.outputs.pr-number }} --body "🔧 The result from \`./gradlew spotlessApply\` was committed to the PR branch."
103110
104111
- if: steps.download-patch.outputs.exists == 'true' && failure()
105112
env:
106-
GH_TOKEN: ${{ github.token }}
113+
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
107114
run: |
108115
gh pr comment ${{ steps.get-pr-number.outputs.pr-number }} --body "❌ The result from \`./gradlew spotlessApply\` could not be committed to the PR branch, see logs: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID."

0 commit comments

Comments
 (0)