Skip to content

Commit

Permalink
ci: add write permission
Browse files Browse the repository at this point in the history
  • Loading branch information
romadryud committed Aug 10, 2024
1 parent 2550d4b commit d72d791
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Lint

on: workflow_call

permissions: write-all

jobs:
prettier:
timeout-minutes: 30
Expand Down Expand Up @@ -37,4 +39,4 @@ jobs:
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git commit -am "chore: run prettier"
git push https://github.com/${{ github.repository }}.git HEAD:${{ github.event.pull_request.head.ref }}
git push origin HEAD:${{ github.event.pull_request.head.ref }}
3 changes: 1 addition & 2 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: preview

on:
pull_request
on: pull_request

jobs:
lint:
Expand Down

0 comments on commit d72d791

Please sign in to comment.