Prettier workflow to have write permission

pull/705/head
yuhan6665 2025-07-06 17:30:28 -04:00
parent 33cbedb6a4
commit fd0538b26e
1 changed files with 2 additions and 3 deletions

View File

@ -3,17 +3,16 @@ name: Prettier Action
on:
pull_request:
branches: [main]
permissions:
contents: write
jobs:
prettier:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Prettify code