Skip to content

Commit df211f1

Browse files
committed
retrigger workflows
1 parent 9e0ba88 commit df211f1

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.github/repository-settings.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ settings](https://github.com/open-telemetry/community/blob/main/docs/how-to-conf
132132

133133
- `FOSSA_API_KEY`
134134
- `OTELBOT_PRIVATE_KEY`
135+
- `OTELBOT_JAVA_INSTRUMENTATION_PRIVATE_KEY`
135136

136137
### Organization variables
137138

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,17 @@ jobs:
6363
working-directory: ${{ runner.temp }}/artifacts
6464
run: unzip patch.zip
6565

66+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
67+
if: steps.download-patch.outputs.exists == 'true'
68+
id: otelbot-token
69+
with:
70+
app-id: 1295839
71+
private-key: ${{ secrets.OTELBOT_JAVA_INSTRUMENTATION_PRIVATE_KEY }}
72+
6673
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6774
if: steps.download-patch.outputs.exists == 'true'
75+
with:
76+
token: ${{ steps.otelbot-token.outputs.token }}
6877

6978
- name: Check out PR branch
7079
if: steps.download-patch.outputs.exists == 'true'
@@ -80,17 +89,8 @@ jobs:
8089
git config user.name otelbot
8190
git config user.email 197425009+otelbot@users.noreply.github.com
8291
83-
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
84-
if: steps.download-patch.outputs.exists == 'true'
85-
id: otelbot-token
86-
with:
87-
app-id: ${{ vars.OTELBOT_APP_ID }}
88-
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
89-
9092
- name: Apply patch and push
9193
if: steps.download-patch.outputs.exists == 'true'
92-
env:
93-
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
9494
run: |
9595
git apply "${{ runner.temp }}/artifacts/patch"
9696
git commit -a -m "./gradlew spotlessApply"

0 commit comments

Comments
 (0)