Skip to content

Commit

Permalink
Enable version check on release
Browse files Browse the repository at this point in the history
[ci-release-auto-unblock]
  • Loading branch information
ogesaku committed Oct 28, 2024
1 parent ad60e05 commit 2583669
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release-auto.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release Auto
name: Auto Release

on:
workflow_dispatch:
Expand All @@ -14,8 +14,8 @@ on:
required: false
default: false
workflow_run:
workflows: [ "Build" ]
types: [ completed ]
workflows: ["Build"]
types: [completed]
branches:
- main
- v*x.x
Expand All @@ -25,8 +25,11 @@ on:

jobs:
check:
uses: coditory/workflows/.github/workflows/release-auto-check.yml@v1
uses: coditory/workflows/.github/workflows/release-check.yml@v1
secrets: inherit
if: |
github.event_name != 'workflow_run'
|| !contains(github.event.workflow_run.head_commit.message, '[ci-skip-build]')
with:
security-updates-only: ${{ inputs.security-updates-only || github.event_name == 'workflow_run' }}

Expand All @@ -38,8 +41,8 @@ jobs:

snapshot:
uses: ./.github/workflows/release.yml
needs: check
secrets: inherit
needs: check
if: |
(inputs.consider-snapshot || github.event_name == 'workflow_run')
&& needs.check.outputs.release != 'true'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ jobs:
java-version: 21
release-command: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -Pversion=$NEXT_VERSION
snapshot-command: ./gradlew publishToSonatype -Pversion=$NEXT_VERSION
version-command: ./gradlew version --quiet --no-scan

0 comments on commit 2583669

Please sign in to comment.