We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd8ca2a commit 6b730bfCopy full SHA for 6b730bf
.github/workflows/pr-format.yaml
@@ -7,20 +7,25 @@ on:
7
- synchronize
8
- reopened
9
- ready_for_review
10
+ push:
11
+ branches:
12
+ - master
13
+ paths:
14
+ - "**/*.java"
15
16
permissions:
17
contents: write
18
19
jobs:
20
format:
- if: github.event.pull_request.head.repo.full_name == github.repository
21
+ if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
22
runs-on: ubuntu-latest
23
24
steps:
- - name: Checkout PR branch
25
+ - name: Checkout branch
26
uses: actions/checkout@v4
27
with:
- ref: ${{ github.event.pull_request.head.ref }}
28
+ ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref_name }}
29
fetch-depth: 0
30
31
- name: Set up Java 21
0 commit comments