Merge pull request #6355 from element-hq/feature/bma/fixRemovingLabel

Fix permissions issue.
This commit is contained in:
Benoit Marty 2026-03-16 15:59:46 +01:00 committed by GitHub
commit 6701a0f31f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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'