Skip to content

Commit 103a60b

Browse files
committed
ci-cd edit
1 parent 5a8b018 commit 103a60b

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/minecraft-maven-version-bump.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ name: "Version Bump Check"
77
on:
88
pull_request:
99
branches: [ "main" ]
10-
branches-ignore: [ "ci/*" ]
1110
jobs:
1211
ensure-version-bump:
13-
if: ${{ github.base_ref == 'main' || github.base_ref == 'master' }}
12+
if: ${{ (github.base_ref == 'main' || github.base_ref == 'master') && !(
13+
startsWith(github.head_ref, 'ci/') ||
14+
startsWith(github.head_ref, 'doc/')
15+
)}}
1416
runs-on: ubuntu-latest
1517

1618
steps:
@@ -50,4 +52,4 @@ jobs:
5052
VERSION="${{ steps.pr_ver.outputs.value }}"
5153
if [[ "$VERSION" == *"-SNAPSHOT"* ]]; then
5254
echo "::warning title=Snapshot Version Detected::The version contains '-SNAPSHOT'. Consider removing it before release."
53-
fi
55+
fi

0 commit comments

Comments
 (0)