Skip to content

Commit

Permalink
ci: do not run check on main branch, make publish call it
Browse files Browse the repository at this point in the history
  • Loading branch information
sabberworm committed Oct 16, 2024
1 parent c2938e7 commit 442f526
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Code Check with Gradle

on:
- push
- pull_request
push:
branches-ignore:
- main
pull_request:
workflow_call:

jobs:
check:
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,25 @@ 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
- uses: gradle/actions/setup-gradle@v4

- name: Create Changelog and Tag
uses: TriPSs/conventional-changelog-action@v5
Expand Down

0 comments on commit 442f526

Please sign in to comment.