Skip to content

Commit

Permalink
update create release
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanfandevops committed Sep 29, 2023
1 parent 18bd749 commit 9d2b7da
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,24 @@ on:
- 'master'

jobs:
replace-release-name:


create-release:
runs-on: ubuntu-latest
env:
releasename: ${{ github.event.pull_request.head.ref }}
steps:
- uses: actions/checkout@v3
- name: Replace release name
uses: mad9000/actions-find-and-replace-string@4
with:
source: ${{ github.event.pull_request.head.ref }}
find: 'release-'
replace: 'v'
- name: Create Release
uses: softprops/action-gh-release@v1
with:
name: ${releasename/release-/v}
tag_name: ${releasename/release-/v}
name: ${{ github.event.pull_request.head.ref }}
tag_name: ${{ github.event.pull_request.head.ref }}
body: |
${{ github.event.pull_request.body }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 9d2b7da

Please sign in to comment.