-
Notifications
You must be signed in to change notification settings - Fork 102
38 lines (33 loc) · 1.03 KB
/
release-notes.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
name: Release Notes
on:
workflow_dispatch:
push:
tags:
- 'v*'
jobs:
build:
name: Release notes
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Retrieve entire history of refs/tags
- name: get-recent-tag
run: |
git fetch --all --tags --force
chmod +x .github/workflows/logger.sh
chmod +x .github/workflows/utils.sh
source .github/workflows/utils.sh
bash .github/workflows/logger.sh
echo "TAG=$(get_most_recent_tag)" >> $GITHUB_OUTPUT
- name: Create GitHub release
uses: Roang-zero1/github-create-release-action@v3
with:
version_regex: ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+
create_draft: true
created_tag: ${{ steps.get-recent-tag.outputs.TAG }}
update_existing: false
release_title: ${{ steps.get-recent-tag.outputs.TAG }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}