Skip to content

Commit 113206d

Browse files
committed
ci: cleanup workflow_dispatch trigger configuration
Remove unused 'branches' property under workflow_dispatch in CI workflows
1 parent 4672c3f commit 113206d

4 files changed

Lines changed: 9 additions & 20 deletions

File tree

.github/workflows/ci_jdk11_ubuntu.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@ on:
88
branches:
99
- master
1010
workflow_dispatch:
11-
branches:
12-
- master
1311

1412
jobs:
15-
1613
build:
1714
runs-on: ubuntu-latest
1815
steps:
@@ -22,7 +19,7 @@ jobs:
2219
uses: actions/setup-java@v3
2320
with:
2421
java-version: '11'
25-
distribution: 'temurin'
22+
distribution: temurin
2623
cache: maven
2724

2825
- name: Build with Maven/JDK 11
@@ -38,12 +35,11 @@ jobs:
3835
packages: write
3936
steps:
4037
- uses: actions/checkout@v4
41-
4238
- name: Set up Java for deployment to Sonatype snapshot repo
4339
uses: actions/setup-java@v3
4440
with:
4541
java-version: '11'
46-
distribution: 'temurin'
42+
distribution: temurin
4743
cache: maven
4844
# Sonatype Central Snapshots
4945
# must match distributionManagement/snapshotRepository/id in pom:
@@ -54,6 +50,6 @@ jobs:
5450
- name: Deploy to Sonatype Central snapshot repo
5551
run: mvn --batch-mode --file pom.xml --activate-profiles fast deploy
5652
env:
57-
SONATYPE_CENTRAL_USERNAME: ${{ secrets.SONATYPE_CENTRAL_USERNAME }}
58-
SONATYPE_CENTRAL_PASSWORD: ${{ secrets.SONATYPE_CENTRAL_PASSWORD }}
53+
SONATYPE_CENTRAL_USERNAME: ${{ secrets.SONATYPE_CENTRAL_USERNAME }}
54+
SONATYPE_CENTRAL_PASSWORD: ${{ secrets.SONATYPE_CENTRAL_PASSWORD }}
5955

.github/workflows/ci_jdk11_win.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@ on:
88
branches:
99
- master
1010
workflow_dispatch:
11-
branches:
12-
- master
1311

1412
jobs:
15-
1613
build:
1714
runs-on: windows-latest
1815
steps:
@@ -22,7 +19,7 @@ jobs:
2219
uses: actions/setup-java@v3
2320
with:
2421
java-version: '11'
25-
distribution: 'temurin'
22+
distribution: temurin
2623
cache: maven
2724

2825
- name: Build with Maven/JDK 11 on Windows

.github/workflows/ci_jdk17_ubuntu.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@ on:
88
branches:
99
- master
1010
workflow_dispatch:
11-
branches:
12-
- master
1311

1412
jobs:
15-
1613
build:
1714
runs-on: ubuntu-latest
1815
steps:
@@ -22,8 +19,9 @@ jobs:
2219
uses: actions/setup-java@v3
2320
with:
2421
java-version: '17'
25-
distribution: 'temurin'
22+
distribution: temurin
2623
cache: maven
2724

2825
- name: Build with Maven/JDK 17 on Ubuntu
2926
run: mvn --batch-mode --file pom.xml clean verify
27+

.github/workflows/ci_jdk21_ubuntu.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@ on:
88
branches:
99
- master
1010
workflow_dispatch:
11-
branches:
12-
- master
1311

1412
jobs:
15-
1613
build:
1714
runs-on: ubuntu-latest
1815
steps:
@@ -22,8 +19,9 @@ jobs:
2219
uses: actions/setup-java@v3
2320
with:
2421
java-version: '21'
25-
distribution: 'temurin'
22+
distribution: temurin
2623
cache: maven
2724

2825
- name: Build with Maven/JDK 21 on Ubuntu
2926
run: mvn --batch-mode --file pom.xml clean verify
27+

0 commit comments

Comments
 (0)