1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-24 10:54:16 +00:00

Attempt once again to put changelog in beta log

This commit is contained in:
jugeeya 2022-11-11 10:17:14 -08:00
parent b69e4ff865
commit db8d961480

View file

@ -33,12 +33,20 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
plugin:
runs-on: ubuntu-latest
outputs:
changelog: ${{ steps.build_release.outputs.changelog }}
container:
image: jugeeya/cargo-skyline:3.0.0-dkp-beta
steps:
- uses: actions/checkout@v2
- name: Build release NRO
id: build_release
run: |
# Grab changelog
# Grab latest tag, grab log vs. main, replace newlines with two newlines and a list marker
git log --pretty=format:%s `git tag --sort=-committerdate | head -1`...main | sed -z 's/\n/\n\n- /g' > changelog.txt
# Initial list marker
echo "changelog=- $(cat changelog.txt)" >> $GITHUB_OUTPUT
PATH=$PATH:/root/.cargo/bin:/opt/devkitpro/devkitA64/bin /root/.cargo/bin/cargo-skyline skyline build --release
env:
HOME: /root
@ -100,10 +108,6 @@ jobs:
mv static/libtraining_modpack_menu.nro ${{env.SMASH_PLUGIN_DIR}}/libtraining_modpack_menu.nro
cp -r static/* ${{env.SMASH_WEB_DIR}}
zip -r training_modpack_beta.zip atmosphere
# Grab latest tag, grab log vs. main, replace newlines with two newlines and a list marker
git log --pretty=format:%s `git tag --sort=-committerdate | head -1`...main | sed -z 's/\n/\n\n- /g' > changelog.txt
# Initial list marker
echo "changelog=- $(cat changelog.txt)" >> $GITHUB_OUTPUT
- name: Update Release
uses: meeDamian/github-release@2.0
with:
@ -119,7 +123,7 @@ jobs:
## Changelog
${{steps.prepare_zip.outputs.changelog}}
${{needs.plugin.outputs.changelog}}
## Installation