-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.08 KB
/
create-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
37
38
39
40
41
name: Create Github Release
on:
push:
tags:
- '**'
jobs:
create-github-release:
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: chrimaeon/github-create-release-action@v2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
tag_name: ${{ github.ref }}
- name: Notify Slack
uses: chrimaeon/github-slack-action@v1
with:
slack_token: ${{ secrets.SLACK_TOKEN }}
channel: ${{ secrets.SLACK_CHANNEL }}
text: "New draft release for ${{ github.repository }}"
blocks: |
[
{
"type": "header",
"text": {
"type": "plain_text",
"text": "New draft release for ${{ github.repository }}"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*URL*\n${{ steps.create_release.outputs.html_url }}"
}
}
]