Skip to content

Commit fc03667

Browse files
Andrew-Chen-Wang50-Course
authored andcommitted
Add pull request write permission to i18n updater
1 parent 64b32c2 commit fc03667

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/i18n.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
locale-updater:
1111
name: Locale updater
1212
runs-on: ubuntu-latest
13+
permissions:
14+
pull-requests: write
1315
steps:
1416
- name: Checkout repo
1517
uses: actions/checkout@v2
@@ -47,14 +49,15 @@ jobs:
4749
python ../scripts/i18n_updater.py
4850
4951
- name: Create Pull Request
50-
uses: peter-evans/create-pull-request@v3
52+
uses: peter-evans/create-pull-request@v5
5153
id: auto-commit-action
5254
with:
5355
branch: i18n-auto-update
5456
title: "[i18n] Update"
5557
body: "Updated locale files on master branch"
5658
commit-message: "Update locale files"
5759
add-paths: rest_framework_simplejwt/locale/**
60+
delete-branch: true
5861

5962
- name: Tell whether locale updated
6063
run: echo "Locale files updated"

0 commit comments

Comments
 (0)