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