mirror of
https://github.com/blueprint-community/action-export.git
synced 2026-02-18 20:01:55 +00:00
24 lines
548 B
Bash
24 lines
548 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Copying repo files into container"
|
|
cp -R /github/workspace/. /app/.blueprint/dev/
|
|
|
|
echo "Patching export script"
|
|
sed -i '4d' /app/scripts/commands/developer/export.sh
|
|
|
|
cd /app/.blueprint/dev
|
|
ls
|
|
|
|
cd /app/
|
|
|
|
echo "Running blueprint export"
|
|
blueprint -export
|
|
|
|
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"
|
|
|
|
echo "file=${identifier}.blueprint" >> $GITHUB_OUTPUT
|