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 a927711
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 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
18 changes: 7 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a927711

Please sign in to comment.