From a927711628d5e8eff5aa6d1f70c8c0c5dc449623 Mon Sep 17 00:00:00 2001 From: Raphael Schweikert Date: Wed, 16 Oct 2024 17:41:04 +0200 Subject: [PATCH] ci: do not run check on main branch, make publish call it --- .github/workflows/check.yml | 7 +++++-- .github/workflows/release.yml | 18 +++++++----------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 018b750..4786c4e 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,8 +1,11 @@ name: Code Check with Gradle on: - - push - - pull_request + push: + branches-ignore: + - main + pull_request: + workflow_call: jobs: check: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ee6b1c2..fdea107 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,22 +8,18 @@ on: - v[0-9]+.[0-9]+.[0-9]+ jobs: - publish: + check: + uses: ./.github/workflows/check.yml + + release: + needs: + - check runs-on: ubuntu-latest permissions: - contents: read - packages: write + contents: write steps: - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 - with: - java-version: '11' - distribution: 'zulu' - - - uses: gradle/actions/setup-gradle@v4 # v4.0.0 - - - run: ./gradlew check - name: Create Changelog and Tag uses: TriPSs/conventional-changelog-action@v5