Skip to content

Commit

Permalink
ci: disable automatic comitting for forks
Browse files Browse the repository at this point in the history
  • Loading branch information
Haberkamp committed Jan 22, 2025
1 parent ab6cba0 commit b7d2d9f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
if: ${{ github.event.pull_request.head.repo.full_name == 'shopware/meteor' }}

- name: Checkout
uses: actions/checkout@v4
if: ${{ github.event.pull_request.head.repo.full_name != 'shopware/meteor' }}

- uses: pnpm/action-setup@v3
with:
Expand Down Expand Up @@ -54,7 +59,7 @@ jobs:
run: pnpx turbo run lint:types

- name: Commit changes
if: always()
if: always() && ${{ github.event.pull_request.head.repo.full_name == 'shopware/meteor' }}
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Apply code formatting and fixable ESLint issues"
Expand Down

0 comments on commit b7d2d9f

Please sign in to comment.