-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (35 loc) · 1.05 KB
/
create-github-relase.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-relase"
on: workflow_dispatch
jobs:
create-github-relase:
runs-on: ubuntu-latest
permissions:
contents: write
discussions: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "Get Previous tag"
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
- name: Get current PR
uses: 8BitJonny/[email protected]
id: PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Show return"
run: |
echo "Tag: ${{ steps.previoustag.outputs.tag }}"
echo "Body: ${{ steps.PR.outputs.pr_body }}"
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ steps.previoustag.outputs.tag }}
name: ${{ steps.previoustag.outputs.tag }}
body: ${{ steps.PR.outputs.pr_body }}
draft: false
prerelease: false