Skip to content

Commit

Permalink
added action filter for mvn release:prepare cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Jan 9, 2024
1 parent 1e6e8fb commit 0972943
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env:

jobs:
event_file:
if: ${{ !(github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, '[maven-release-plugin]')) }}
name: "Event File (for test results)"
runs-on: ubuntu-latest
steps:
Expand All @@ -25,6 +26,7 @@ jobs:
path: ${{ github.event_path }}

test:
if: ${{ !(github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, '[maven-release-plugin]')) }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
Expand All @@ -49,6 +51,7 @@ jobs:
path: target/surefire-reports/**/*.xml

checker-framework:
if: ${{ !(github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, '[maven-release-plugin]')) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -63,6 +66,7 @@ jobs:
run: mvn -B clean compile -P checker-framework

deploy:
if: ${{ !(github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, '[maven-release-plugin]')) }}
needs: [checker-framework, test]
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 0972943

Please sign in to comment.