mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed permissions for GitHub action with screenshots.
Follow up to 97b7970c64
.
This commit is contained in:
parent
3b255d72cf
commit
86ae1a3b6c
4
.github/workflows/screenshots.yml
vendored
4
.github/workflows/screenshots.yml
vendored
@ -1,7 +1,7 @@
|
|||||||
name: Visual Regression Tests
|
name: Visual Regression Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request_target:
|
||||||
types: [labeled, synchronize, opened, reopened]
|
types: [labeled, synchronize, opened, reopened]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
@ -58,6 +58,7 @@ jobs:
|
|||||||
if: steps.find-comment.outputs.comment-id == ''
|
if: steps.find-comment.outputs.comment-id == ''
|
||||||
uses: peter-evans/create-or-update-comment@v3
|
uses: peter-evans/create-or-update-comment@v3
|
||||||
with:
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
issue-number: ${{ github.event.pull_request.number }}
|
issue-number: ${{ github.event.pull_request.number }}
|
||||||
body: |
|
body: |
|
||||||
🖼️ **Screenshots created**
|
🖼️ **Screenshots created**
|
||||||
@ -72,6 +73,7 @@ jobs:
|
|||||||
if: steps.find-comment.outputs.comment-id != ''
|
if: steps.find-comment.outputs.comment-id != ''
|
||||||
uses: peter-evans/create-or-update-comment@v3
|
uses: peter-evans/create-or-update-comment@v3
|
||||||
with:
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
comment-id: ${{ steps.find-comment.outputs.comment-id }}
|
comment-id: ${{ steps.find-comment.outputs.comment-id }}
|
||||||
body: |
|
body: |
|
||||||
- Generated screenshots for ${{ github.event.pull_request.head.sha }} at ${{ steps.generate-screenshots.outputs.date }} ([download](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})).
|
- Generated screenshots for ${{ github.event.pull_request.head.sha }} at ${{ steps.generate-screenshots.outputs.date }} ([download](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})).
|
||||||
|
Loading…
Reference in New Issue
Block a user