Skip to content

Commit 0873120

Browse files
committed
Update workflows
1 parent b5b96b8 commit 0873120

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.github/workflows/gradle-build.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
name: Gradle Build
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- "main"
7-
- "dev"
8-
- "dev/*"
9-
- "feature/*"
10-
- "bugfix/*"
11-
- "release/*"
8+
- "release-*"
129
pull_request:
1310
branches:
1411
- "main"
15-
- "release/*"
12+
- "release-*"
1613

1714
jobs:
1815
build:
@@ -35,5 +32,5 @@ jobs:
3532
- name: Setup Gradle
3633
uses: gradle/actions/setup-gradle@v4
3734

38-
- name: Build
35+
- name: Gradle Build
3936
run: ./gradlew build

.github/workflows/gradle-publish-snapshot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
if: startsWith(github.ref, 'refs/heads/')
1515
run: |
1616
BRANCH="${GITHUB_REF#refs/heads/}"
17-
if [[ "$BRANCH" != "main" && "$BRANCH" != "dev" && "$BRANCH" != dev/* && "$BRANCH" != release/* ]]; then
18-
echo "::error title=wrong branch selected::this workflow must be run on 'main', 'dev/*' or 'release/*' branches"
17+
if [[ "$BRANCH" != "main" && "$BRANCH" != "dev" && "$BRANCH" != dev-* && "$BRANCH" != release-* ]]; then
18+
echo "::error title=wrong branch selected::this workflow must be run on 'main', 'dev', 'dev-*' or 'release-*' branches"
1919
exit 1
2020
fi
2121

0 commit comments

Comments
 (0)