-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a github action for tagging releases, which will be triggered alo…
…ng with other repo's tagging jobs
- Loading branch information
Joseph Kiely
committed
Apr 29, 2024
1 parent
96422db
commit 98e82e9
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This is a basic workflow that is manually triggered to create a tag release in the repo in which it is present. | ||
# It can be manually triggered by those with permissions, or triggered from the main action which can trigger tag releases for all repos at once. | ||
|
||
name: tagRelease | ||
|
||
on: | ||
workflow_dispatch: | ||
# Inputs the workflow accepts. | ||
inputs: | ||
tag: | ||
# Friendly description to be shown in the UI instead of 'tag' | ||
description: 'Tag to be created along with release' | ||
# Input has to be provided for the workflow to run | ||
required: true | ||
git_ref: | ||
description: 'Git reference to create tag from, can be a commit hash or branch' | ||
required: true | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
createRelease: | ||
runs-on: ubuntu-latest | ||
name: Create Release | ||
steps: | ||
- uses: softprops/action-gh-release@v1 #This action will create the release with the params specified. | ||
with: | ||
tag_name: ${{ inputs.tag }} | ||
target_commitish: ${{ inputs.git_ref }} |