Tracking pull request to merge release-1.61.0 to master #18
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
name: Create Release after merging to master | |
on: | |
pull_request: | |
types: [closed] | |
branches: | |
- 'master' | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Replace release name | |
uses: mad9000/actions-find-and-replace-string@4 | |
id: newereleasename | |
with: | |
source: ${{ github.event.pull_request.head.ref }} | |
find: 'release-' | |
replace: 'v' | |
- name: Create Release | |
uses: softprops/action-gh-release@v1.1.0 | |
with: | |
name: ${{ steps.newereleasename.outputs.value }} | |
tag_name: ${{ steps.newereleasename.outputs.value }} | |
target_commitish: master | |
body: | | |
${{ github.event.pull_request.body }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
draft: false | |
prerelease: false |