mirror of
https://github.com/blueprint-community/action-export.git
synced 2026-02-18 20:01:55 +00:00
17 lines
493 B
Bash
17 lines
493 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Copying repo files into container"
|
|
cp -r /github/workspace/. /srv/pterodactyl/.blueprint/dev/
|
|
|
|
echo "Running blueprint build"
|
|
blueprint -build
|
|
|
|
identifier=$(grep -m 1 "identifier:" /srv/pterodactyl/.blueprint/dev/conf.yml | cut -d ":" -f2 | xargs)
|
|
|
|
echo "Copying output back to workspace"
|
|
cp "/srv/pterodactyl/${identifier}.blueprint" "/github/workspace/${identifier}.blueprint"
|
|
|
|
# Set output if needed
|
|
echo "blueprint_file=${identifier}.blueprint" >> $GITHUB_OUTPUT
|