Skip to content

Commit

Permalink
try fix gha
Browse files Browse the repository at this point in the history
  • Loading branch information
brachy84 committed Dec 8, 2023
1 parent 0852d75 commit 25ca63e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build_and_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,14 @@ jobs:

- name: Get Changelog
run: |
mkdir -p build
RELEASE_URL="https://api.github.com/repos/${{ github.repository }}/releases/tags/v${{ inputs.version }}"
RELEASE_JSON=$(curl -sSL $RELEASE_URL)
CHANGELOG=echo $RELEASE_JSON | jq -r '.body'
CHANGELOG=$RELEASE_JSON | jq -r '.body'
if [ $CHANGELOG == "null" ]; then
echo "No changelog found" > "build/changelog.md"
echo "No changelog found" > build/changelog.md
else
echo "$CHANGELOG" > "build/changelog.md"
echo "$CHANGELOG" > build/changelog.md
fi
- name: Publish Minecraft Mods
Expand Down

0 comments on commit 25ca63e

Please sign in to comment.