Skip to content
Open
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ inputs:
description: The prefix prepended to the version number. Default is v.
required: false
default: v
comment-pr:
description: Comment the inititating PR with newly minted tag.
required: false
default: true
outputs:
tag:
description: 'The version string used to create the tag.'
Expand All @@ -31,3 +35,10 @@ runs:
bump: ${{ steps.bump.outputs.match }}
github_token: ${{ inputs.token }}
prefix: ${{ inputs.prefix }}
- id: pr-update
if: ${{ inputs.comment-pr }}
shell: bash
run: |
gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "Tag generated by PR: [${{ steps.tag.outputs.version_tag }}](https://github.com/${{ github.repository }}/releases/tag/${{ steps.tag.outputs.version_tag }})"
env:
GH_TOKEN: ${{ github.token }}