aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-06-03 13:58:04 +0200
committerGitHub <noreply@github.com>2024-06-03 13:58:04 +0200
commit9a977fdbe1e8b5f1bcbbe60f0fe7f62808f6ae67 (patch)
treec3a4c66eb73d28cf2f030f8c5dc1fb2a77833ba1
parent7dd15439295541be0011e5abafccf5444981c069 (diff)
downloadNotEnoughUpdates-9a977fdbe1e8b5f1bcbbe60f0fe7f62808f6ae67.tar.gz
NotEnoughUpdates-9a977fdbe1e8b5f1bcbbe60f0fe7f62808f6ae67.tar.bz2
NotEnoughUpdates-9a977fdbe1e8b5f1bcbbe60f0fe7f62808f6ae67.zip
meta: Fix github release download (#1196)
-rw-r--r--.github/workflows/push-to-modrinth.yaml20
1 files changed, 13 insertions, 7 deletions
diff --git a/.github/workflows/push-to-modrinth.yaml b/.github/workflows/push-to-modrinth.yaml
index 364a3afe..dfb6438a 100644
--- a/.github/workflows/push-to-modrinth.yaml
+++ b/.github/workflows/push-to-modrinth.yaml
@@ -7,17 +7,23 @@ jobs:
upload-to-modrinth:
runs-on: ubuntu-latest
steps:
- - uses: dsaltares/fetch-gh-release-asset@master
- with:
- version: ${{ github.event.release.id }}
- regex: true
- file: ".*\\.jar"
- token: ${{ secrets.GITHUB_TOKEN }}
- target: .
+ - name: Download release file
+ gh release download "$TAG" -p '*.jar' --repo "$REPO"
+ env:
+ TAG: ${{ github.event.release.tag_name }}
+ REPO: ${{ github.repository }}
+ GH_TOKEN: ${{ github.token }}
- run: |
printf %s "$CHANGELOG" > CHANGELOG.md
+ name: Set changelog
env:
CHANGELOG: ${{ github.event.release.body }}
+ - name: Display file tree
+ run: |
+ ls -Rla .
+ echo ::group::Changelog
+ cat CHANGELOG.md
+ echo ::endgroup::
- uses: Kir-Antipov/mc-publish@v3.3
with:
modrinth-id: GGamhqbw