Skip to content

Commit

Permalink
fix: Changelogs uploaded to vendors are empty in private repos
Browse files Browse the repository at this point in the history
  • Loading branch information
jh-devv committed Aug 20, 2023
1 parent d628ca4 commit 07688f7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,16 @@ jobs:
zipBall: false

- name: Get latest release description
run: |
LATEST_DESC=$(curl -s https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r '.body')
echo "$LATEST_DESC" > CHANGELOG.release.md
id: latest-release
uses: pozetroninc/github-action-get-latest-release@master
with:
repository: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Pipe latest release description to file
run: echo "${{ steps.latest-release.outputs.description }}" > CHANGELOG.release.md
shell: bash


- name: Publish to Modrinth
env:
Expand Down

0 comments on commit 07688f7

Please sign in to comment.