-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to pull modpack name prop for use with workflow
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,12 +18,16 @@ jobs: | |
files: vanilla-plus/ | ||
dest: modpack.zip | ||
|
||
- name: Get modpack name | ||
id: get_modpack_name | ||
run: scripts/extract_modpack_name.sh | ||
|
||
- uses: GreenTF/[email protected] | ||
with: | ||
namespace: Beeheim # the thunderstore 'team' to publish under | ||
description: ${{ github.event.release.body }} | ||
token: ${{ secrets.THUNDERSTORE_TOKEN }} | ||
name: ${{ github.event.release.title }} # the name of the package | ||
name: ${{ steps.get_modpack_name.outputs.Name }} # the name of the package | ||
version: ${{ github.ref_name }} # Use the tag as the package version | ||
community: Valheim # the game the package is for | ||
repo: valheim.thunderstore.io | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# Check if a file path is provided | ||
if [ $# -eq 0 ]; then | ||
echo "No file path provided" | ||
exit 1 | ||
fi | ||
|
||
# Check if the file exists | ||
if [ ! -f $1 ]; then | ||
echo "File not found" | ||
exit 1 | ||
fi | ||
|
||
# Extract the name property | ||
name=$(jq -r '.name' $1) | ||
echo "$name" |