Skip to content

Commit

Permalink
Ignore [maven-release-plugin] in workflows
Browse files Browse the repository at this point in the history
changes for #78
  • Loading branch information
LitschiW committed Jul 15, 2023
1 parent 37cf9d3 commit cc7eed8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build_artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ concurrency:
env:
java_version: 8
java_distribution: 'temurin'
maven-release-plugin-prefix: '[maven-release-plugin]'

jobs:
build_artifact:
Expand Down Expand Up @@ -41,6 +42,7 @@ jobs:
path: ./target/*.jar

run_tests:
if: !contains(github.event.head_commit.message, env.maven-release-plugin-prefix)
name: Run Tests & Report
runs-on: ubuntu-latest
needs: build_artifact
Expand Down Expand Up @@ -74,6 +76,7 @@ jobs:
path: 'target/surefire-reports/*.xml'

run_hello_world_Linux:
if: !contains(github.event.head_commit.message, env.maven-release-plugin-prefix)
name: Run Hello World (Linux)
runs-on: ubuntu-latest
needs: run_tests
Expand All @@ -89,6 +92,7 @@ jobs:
run: ./hello_world.sh

run_hello_world_Windows:
if: !contains(github.event.head_commit.message, env.maven-release-plugin-prefix)
name: Run Hello World (Windows)
runs-on: windows-latest
needs: run_tests
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/checkstyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
run_checkstyle:
if: !contains(github.event.head_commit.message, '[maven-release-plugin]')
name: Run Checkstyle
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
Prepare-and-Release:
if: "!contains(github.event.head_commit.message, '[maven-release-plugin]')"
if: !contains(github.event.head_commit.message, '[maven-release-plugin]')
name: Prepare and Release
runs-on: ubuntu-latest

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
build_documentation:
if: !contains(github.event.head_commit.message, '[maven-release-plugin]')
name: Build Documentation
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -42,7 +43,7 @@ jobs:

push_documentation_to_gh-pages:
name: Push Documentation to gh-pages
if: github.event_name == 'push'
if: github.event_name == 'push' && !contains(github.event.head_commit.message, '[maven-release-plugin]')
needs: build_documentation
runs-on: ubuntu-latest

Expand Down

0 comments on commit cc7eed8

Please sign in to comment.