Skip to content

Commit cbb4228

Browse files
authored
Merge pull request #1576 from 3scale/update-tagRelease-action
Update tagRelease action
2 parents 7037b7b + 89e5916 commit cbb4228

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/tagRelease.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
description: 'Tag to be created along with release'
1313
# Input has to be provided for the workflow to run
1414
required: true
15-
git_ref:
15+
git_ref:
1616
description: 'Git reference to create tag from, can be a commit hash or branch'
1717
required: true
1818

@@ -22,7 +22,12 @@ jobs:
2222
runs-on: ubuntu-latest
2323
name: Create Release
2424
steps:
25-
- uses: softprops/action-gh-release@v1 #This action will create the release with the params specified.
26-
with:
27-
tag_name: ${{ inputs.tag }}
28-
target_commitish: ${{ inputs.git_ref }}
25+
- name: Create Release
26+
env:
27+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
run: |
29+
gh release create ${{ inputs.tag }} \
30+
--repo ${{ github.repository }} \
31+
--target ${{ inputs.git_ref }} \
32+
--title "${{ inputs.tag }}" \
33+
--generate-notes

0 commit comments

Comments
 (0)