Skip to content

Commit

Permalink
feat: add new-release-git-tag output variable (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachspar authored Jun 11, 2024
1 parent 6c8be3b commit 36ca94a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
outputs:
new-release-published: ${{ steps.get-next-version.outputs.new-release-published }}
new-release-version: ${{ steps.get-next-version.outputs.new-release-version }}
new-release-git-tag: ${{ steps.get-next-version.outputs.new-release-git-tag }}

release:
runs-on: ubuntu-latest
Expand All @@ -37,7 +38,7 @@ jobs:
if: needs.get-next-version.outputs.new-release-published == 'true'

steps:
- run: echo "The new release version is ${{ needs.get-next-version.outputs.new-release-version }}"
- run: echo "The new release version is ${{ needs.get-next-version.outputs.new-release-version }} with tag ${{ needs.get-next-version.outputs.new-release-git-tag }}"
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
outputs:
new-release-published: ${{ steps.get-next-version.outputs.new-release-published }}
new-release-version: ${{ steps.get-next-version.outputs.new-release-version }}
new-release-git-tag: ${{ steps.get-next-version.outputs.new-release-git-tag }}

build:
runs-on: ubuntu-latest
Expand All @@ -76,6 +77,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: echo "The new release version is ${{ needs.get-next-version.outputs.new-release-version }}"
- run: echo "The new release git tag is ${{ needs.get-next-version.outputs.new-release-git-tag }}"


release:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function verifyConditions() {
function generateNotes(_pluginConfig, { nextRelease }) {
core.setOutput("new-release-published", "true");
core.setOutput("new-release-version", nextRelease.version);
core.setOutput("new-release-git-tag", nextRelease.gitTag);
}

module.exports = {
Expand Down

0 comments on commit 36ca94a

Please sign in to comment.