Skip to content

Commit 36746f6

Browse files
devcrocodskarpovdev
authored andcommitted
Update PR validation workflow (modelcontextprotocol#177)
* Update PR validation workflow * Update PR validation trigger configuration * Add concurrency control to PR validation workflow
1 parent 0f65045 commit 36746f6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/validate-pr.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ name: Validate PR
33
on:
44
workflow_dispatch:
55
pull_request:
6-
types: [auto_merge_enabled]
6+
branches: [main]
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
711

812
jobs:
913
validate-pr:
@@ -17,7 +21,7 @@ jobs:
1721
java-version: '21'
1822
distribution: 'temurin'
1923
- name: Setup Gradle
20-
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
24+
uses: gradle/actions/setup-gradle@v4
2125

2226
- name: Clean Build with Gradle
2327
run: ./gradlew clean build

0 commit comments

Comments
 (0)