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