Merge pull request #6355 from element-hq/feature/bma/fixRemovingLabel
Fix permissions issue.
This commit is contained in:
3
.github/workflows/recordScreenshots.yml
vendored
3
.github/workflows/recordScreenshots.yml
vendored
@@ -14,6 +14,9 @@ env:
|
||||
|
||||
jobs:
|
||||
record:
|
||||
permissions:
|
||||
# Need write permissions on PRs to remove the label "Record-Screenshots"
|
||||
pull-requests: write
|
||||
name: Record screenshots on branch ${{ github.event.pull_request.head.ref || github.ref_name }}
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'Record-Screenshots'
|
||||
|
||||
Reference in New Issue
Block a user