Skip to content

Commit

Permalink
testing action from fork
Browse files Browse the repository at this point in the history
  • Loading branch information
Costallat committed Aug 15, 2024
1 parent 5d26ea1 commit 5527402
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/lua-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,17 @@ on:
pull_request:
paths:
- "data*/**"
merge_group:
push:
paths:
- "data*/**"

jobs:
lua-formatter:
runs-on: ubuntu-latest
steps:
- name: Set up Git
if: ${{ github.ref != 'refs/heads/main' }}
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "GitHub Actions"
- name: Actions checkout
if: ${{ github.ref != 'refs/heads/main' }}
uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
Expand All @@ -32,7 +28,7 @@ jobs:
args: .

- name: Run add and commit
if: ${{ github.ref != 'refs/heads/main' }}
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: EndBug/add-and-commit@v9
with:
author_name: GitHub Actions
Expand Down

0 comments on commit 5527402

Please sign in to comment.