diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 40f2f614..4900038f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,6 +2,8 @@ name: Lint on: workflow_call +permissions: write-all + jobs: prettier: timeout-minutes: 30 @@ -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 }} diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 4ed37963..f632fbc7 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -1,7 +1,6 @@ name: preview -on: - pull_request +on: pull_request jobs: lint: