Skip to content

Commit

Permalink
feat(gradle-library): add outputs related to release
Browse files Browse the repository at this point in the history
  • Loading branch information
stempler committed Aug 19, 2024
1 parent 03162c8 commit 1c0252b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/gradle-library-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ on:
description: If semantic release should do a dryrun
default: false
type: boolean
outputs:
release-published:
description: If a release was created
value: ${{ jobs.publish.outputs.release-published }}
release-version:
description: The release version if a release was created
value: ${{ jobs.publish.outputs.release-version }}
secrets:
WETF_ARTIFACTORY_USER:
WETF_ARTIFACTORY_PASSWORD:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/gradle-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ on:
description: If this is a multi-module project
type: boolean
default: false
outputs:
release-published:
description: If a release was created
value: ${{ jobs.run.outputs.release-published }}
release-version:
description: The release version if a release was created
value: ${{ jobs.run.outputs.release-version }}
secrets:
# GH_PAT:
# required: true
Expand All @@ -78,6 +85,10 @@ jobs:
run:
runs-on: ubuntu-latest

outputs:
release-published: ${{ steps.gradle-release.outputs.release-published }}
release-version: ${{ steps.gradle-release.outputs.release-version }}

steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand Down Expand Up @@ -181,6 +192,7 @@ jobs:
private-key: "${{ secrets.WE_RELEASE_GITHUB_PRIVATE_KEY }}"

- name: Publish/release with Gradle
id: gradle-release
if: ${{ !inputs.skip-build && inputs.publish-tasks != '' }}
uses: wetransform/gha-gradle-semantic-release@7df5afac738e0cf1ffb38917c17a6c4a5357a5af # v2.1.0
with:
Expand Down

0 comments on commit 1c0252b

Please sign in to comment.