forked from comit-network/comit-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1.12 KB
/
create-cnd-gh-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: "Create cnd GitHub release"
on:
pull_request:
branches:
- master
types:
- closed
jobs:
create_gh_release:
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/cnd/') # only merged release branches must trigger this
name: Create cnd GitHub release
runs-on: ubuntu-latest
steps:
- name: Checkout sources to access local actions
uses: actions/checkout@v2
- name: Extract version from branch name
id: extract-version
uses: ./.github/actions/trim-front
with:
string: ${{ github.event.pull_request.head.ref }}
prefix: release/cnd/
- name: Create Release
id: create-release
uses: thomaseizinger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.BOTTY_GITHUB_TOKEN }}
with:
target_commitish: ${{ github.event.pull_request.merge_commit_sha }}
tag_name: cnd-${{ steps.extract-version.outputs.trimmed }}
name: cnd-${{ steps.extract-version.outputs.trimmed }}
draft: false
prerelease: false