-
-
Notifications
You must be signed in to change notification settings - Fork 47
41 lines (39 loc) · 1.33 KB
/
Copy pathgithub_release_notes_test.yml
File metadata and controls
41 lines (39 loc) · 1.33 KB
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: Test GitHub Release Tag and Notes Extraction
on:
push:
branches: [ release/**, hotfix/** ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.12' ]
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install flake8 poetry
poetry install
- name: Install
run: |
poetry build
python3 -m pip install dist/*.whl
- name: Extract release notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v3
with:
changelog_file: CHANGELOG.md
- name: Retrieve version
run: |
echo "TAG_NAME=$(slack-watchman -v | awk '{match($0, /[0-9]+\.[0-9]+\.[0-9]+/); print substr($0, RSTART, RLENGTH)}')" >> $GITHUB_OUTPUT
id: version
- name: Test tag and release notes
# This step prints the tag and release notes to the console for verification before creating the release.
run: |
echo "Tag: ${{ steps.version.outputs.TAG_NAME }}"
echo "Release Notes: ${{ steps.extract-release-notes.outputs.release_notes }}"