Fix github release download

[no changelog]
This commit is contained in:
Linnea Gräf
2024-07-06 03:17:55 +02:00
parent e1b5f02761
commit 4e1cda1d64

View File

@@ -11,13 +11,12 @@ jobs:
upload-to-modrinth: upload-to-modrinth:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: dsaltares/fetch-gh-release-asset@master - run: |
with: gh release download "$TAG" -p '*.jar' --repo "$REPO"
version: ${{ github.event.release.id }} env:
regex: true TAG: ${{ github.event.release.tag_name }}
file: ".*\\.jar" REPO: ${{ github.repository }}
target: '.' GH_TOKEN: ${{ github.token }}
token: ${{ secrets.GITHUB_TOKEN }}
- run: | - run: |
printf %s "$CHANGELOG" > CHANGELOG.md printf %s "$CHANGELOG" > CHANGELOG.md
env: env: