Skip to content

Expression-based centrality API replacing hardcoded metrics #45

Expression-based centrality API replacing hardcoded metrics

Expression-based centrality API replacing hardcoded metrics #45

name: Generate Changelog
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
tag:
description: "Tag to generate changelog for (leave empty for latest)"
required: false
type: string
permissions:
contents: write
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Determine tag
id: tag
run: |
if [ -n "${{ github.event.inputs.tag }}" ]; then
echo "tag=${{ github.event.inputs.tag }}" >> $GITHUB_OUTPUT
else
echo "tag=${{ github.ref_name }}" >> $GITHUB_OUTPUT
fi
- name: Generate changelog
uses: orhun/git-cliff-action@v4
id: cliff
with:
config: cliff.toml
args: --latest --strip header
env:
OUTPUT: CHANGES.md
- name: Create or update GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.tag.outputs.tag }}
body_path: CHANGES.md
draft: false
prerelease: ${{ contains(steps.tag.outputs.tag, 'a') || contains(steps.tag.outputs.tag, 'b') }}