mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
c528756fb1
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.1.0 to 3.2.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3.1.0...v3.2.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
name: "Create release"
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- closed
|
|
|
|
jobs:
|
|
create_release:
|
|
name: Create from merged release branch
|
|
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/')
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3.2.0
|
|
|
|
- name: Extract version from branch name
|
|
id: extract-version
|
|
shell: python
|
|
run: |
|
|
branch_name = "${{ github.event.pull_request.head.ref }}"
|
|
version = branch_name.split("/")[1]
|
|
|
|
print(f"::set-output name=version::{version}")
|
|
|
|
- name: Extract changelog section for release
|
|
id: changelog
|
|
uses: coditory/changelog-parser@v1
|
|
with:
|
|
version: ${{ steps.extract-version.outputs.version }}
|
|
|
|
- name: Create release
|
|
uses: actions/create-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.BOTTY_GITHUB_TOKEN }}
|
|
with:
|
|
tag_name: ${{ steps.extract-version.outputs.version }}
|
|
release_name: ${{ steps.extract-version.outputs.version }}
|
|
draft: false
|
|
prerelease: false
|
|
body: ${{ steps.changelog.outputs.description }}
|
|
commitish: ${{ github.event.pull_request.merge_commit_sha }}
|