Skip to content

Commit

Permalink
Add pull request write permission to i18n updater
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-Chen-Wang authored and 50-Course committed Dec 15, 2023
1 parent 64b32c2 commit fc03667
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
locale-updater:
name: Locale updater
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout repo
uses: actions/checkout@v2
Expand Down Expand Up @@ -47,14 +49,15 @@ jobs:
python ../scripts/i18n_updater.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v5
id: auto-commit-action
with:
branch: i18n-auto-update
title: "[i18n] Update"
body: "Updated locale files on master branch"
commit-message: "Update locale files"
add-paths: rest_framework_simplejwt/locale/**
delete-branch: true

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

0 comments on commit fc03667

Please sign in to comment.