Skip to content

Commit

Permalink
Generate changelog between last release and current nightly (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
wlhlm authored Nov 17, 2024
1 parent d37a71f commit 1fab55c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3,140 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/nightly-modpack-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,21 @@ jobs:
path: cache
key: daxxl-${{ runner.os }}-${{ steps.date.outputs.cachedate }}

- name: Retrieve last non-nightly release name
shell: bash
if: success() || failure()
run: |
last_non_nightly_release_name="$(jq -r '.releases | map(select(contains("nightly") | not)) | last' <./gtnh-modpack.json)"
echo "nightly_non_nightly_changelog_file='./releases/changelogs/changelog from ${last_non_nightly_release_name} to nightly.md'" >> $GITHUB_ENV
echo "last_non_nightly_release_name='${last_non_nightly_release_name}'" >> $GITHUB_ENV
- name: Generate changelog between nightly and last non-nightly release
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.NIGHTLY_GITHUB_TOKEN }}
run: |
poetry run python -m gtnh.cli.generate_changelog --previous-release-name "$last_non_nightly_release_name" nightly > "$nightly_non_nightly_changelog_file"
# Upload modpack

- name: Upload manifest
Expand Down Expand Up @@ -172,6 +187,7 @@ jobs:
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config pull.rebase true
git add "$last_non_nightly_release_name"
git add "./releases/changelogs/nightly builds"
git add ./releases/manifests/nightly.json
git add ./gtnh-assets.json
Expand Down
Loading

0 comments on commit 1fab55c

Please sign in to comment.