Skip to content

chore: grant write permissions to weblate action #3

chore: grant write permissions to weblate action

chore: grant write permissions to weblate action #3

name: Merge Weblate translations
on:
pull_request:
types: [opened, reopened]
jobs:
merge:
runs-on: ubuntu-latest
permissions: read-all|write-all

Check failure on line 10 in .github/workflows/weblate-auto-merge.yml

View workflow run for this annotation

GitHub Actions / Merge Weblate translations

Invalid workflow file

The workflow is not valid. .github/workflows/weblate-auto-merge.yml (Line: 10, Col: 18): Unexpected value 'read-all|write-all'
steps:
- uses: actions/checkout@v3
- name: AutoMerge Weblate translations
if: github.event.pull_request.user.login == 'weblate'
run: gh pr merge --auto --delete-branch --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}