Skip to content

Commit

Permalink
Refactor Java checks workflow to separate pull request and release ch…
Browse files Browse the repository at this point in the history
…ecks
  • Loading branch information
raikbitters committed Dec 11, 2024
1 parent e64054e commit 91aea00
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/java-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@ on:
- '.github/**'
- README.md
- gradle.properties
push:
branches:
- master
- develop
paths-ignore:
- '.github/**'
- README.md
- gradle.properties

jobs:
call-java-cheks:
name: Call Java checks
call-java-checks:
if : ${{ github.event_name == 'pull_request' && github.base_ref != 'refs/heads/master' }}
name: Call Java Checks
uses: reportportal/.github/.github/workflows/java-checks.yaml@main
secrets: inherit

call-release-java-checks:
if: ${{ github.event_name == 'pull_request' && github.base_ref == 'refs/heads/master' }}
name: Call Release Java Checks
uses: reportportal/.github/.github/workflows/java-checks.yaml@main
with:
java-version: '21'
runs-on: ubuntu-latest
release-mode: true
secrets: inherit

0 comments on commit 91aea00

Please sign in to comment.