| 1 |
name: Show changelog since last release |
| 2 |
|
| 3 |
on: |
| 4 |
workflow_dispatch: |
| 5 |
|
| 6 |
jobs: |
| 7 |
changelog: |
| 8 |
name: Show changelog since last release |
| 9 |
runs-on: 'ubuntu-latest' |
| 10 |
steps: |
| 11 |
- name: Checkout code |
| 12 |
uses: actions/checkout@v5 |
| 13 |
with: |
| 14 |
fetch-depth: 0 # for conventional commits and getting all git tags |
| 15 |
persist-credentials: false |
| 16 |
- name: Install git-cliff |
| 17 |
uses: greenbone/actions/uv@v3 |
| 18 |
with: |
| 19 |
install: git-cliff |
| 20 |
- name: Determine changelog |
| 21 |
env: |
| 22 |
GITHUB_REPO: ${{ github.repository }} |
| 23 |
GITHUB_TOKEN: ${{ github.token }} |
| 24 |
run: | |
| 25 |
git-cliff -v --strip header --unreleased -o /tmp/changelog.md |
| 26 |
- name: Show changelog |
| 27 |
run: | |
| 28 |
cat /tmp/changelog.md |
| 29 |
cat /tmp/changelog.md >> $GITHUB_STEP_SUMMARY |