Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/workflows/screenshots-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,9 @@ jobs:
echo "head_repo=$(cat /tmp/pr-metadata/head_repo.txt)" >> "$GITHUB_OUTPUT"
echo "head_sha=$(cat /tmp/pr-metadata/head_sha.txt)" >> "$GITHUB_OUTPUT"

- name: Get otelbot token
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
id: otelbot-token
with:
app-id: ${{ vars.OTELBOT_APP_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}

- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
token: ${{ steps.otelbot-token.outputs.token }}
fetch-depth: 0

- name: Download screenshots artifact
Expand Down Expand Up @@ -164,6 +156,13 @@ jobs:
f.write(body)
PYEOF

- name: Get otelbot token
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
id: otelbot-token
with:
app-id: ${{ vars.OTELBOT_APP_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}

- name: Post or update PR comment
env:
PR_NUMBER: ${{ steps.metadata.outputs.pr_number }}
Expand Down
Loading