Skip to content

Commit

Permalink
fix section changes HTML generation from makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Dec 3, 2024
1 parent ee3b339 commit 55fb353
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/zenodo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
- name: Generate Changelog
id: zenodo_metadata
run: |
cd
make generate-changes-html VERSION=${{ github.ref_name }}
echo "ZENODO_DESCRIPTION=$(cat reports/CHANGES_${{ github.ref_name }}.html | tr -d '\n')" >> $GITHUB_ENV
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -759,10 +759,10 @@ extract-changes: ## uses the specified VERSION to extract its sub-section in CHA
@-echo "Extracting changes for ${VERSION} ..."
@bash -c '\
START=$$(cat "$(APP_ROOT)/CHANGES.rst" | grep -n "crim-ca/weaver/tree/${VERSION}" | cut -d ":" -f 1); \
STOP=$$(tail -n +$$(($${START} + 2)) "$(APP_ROOT)/CHANGES.rst" \
STOP=$$(tail -n +$$(($${START:-0} + 2)) "$(APP_ROOT)/CHANGES.rst" \
| grep -n ".. _changes" \
| cut -d ":" -f 1 | head -n 1); \
tail -n +$${START} "$(APP_ROOT)/CHANGES.rst" | head -n $${STOP} \
tail -n +$${START:-0} "$(APP_ROOT)/CHANGES.rst" | head -n $${STOP:--1} \
> "$(REPORTS_DIR)/CHANGES_${VERSION}.rst" \
'

Expand Down

0 comments on commit 55fb353

Please sign in to comment.