mirror of
https://github.com/blueprint-community/action-export.git
synced 2026-02-18 20:01:55 +00:00
Fix: Change relative ptero dir to absolute dir
This commit is contained in:
@@ -1,18 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
ls
|
|
||||||
|
|
||||||
echo "Copying repo files into container"
|
echo "Copying repo files into container"
|
||||||
cp -r /github/workspace/. ./.blueprint/dev/
|
cp -R /github/workspace/ /app/.blueprint/dev/
|
||||||
|
|
||||||
echo "Running blueprint build"
|
echo "Running blueprint build"
|
||||||
blueprint -build
|
blueprint -build
|
||||||
|
|
||||||
identifier=$(grep -m 1 "identifier:" ./.blueprint/dev/conf.yml | cut -d ":" -f2 | xargs)
|
identifier=$(grep -m 1 "identifier:" /app/.blueprint/dev/conf.yml | cut -d ":" -f2 | xargs)
|
||||||
|
|
||||||
echo "Copying output back to workspace"
|
echo "Copying output back to workspace"
|
||||||
cp "./${identifier}.blueprint" "/github/workspace/${identifier}.blueprint"
|
cp "/app/${identifier}.blueprint" "/github/workspace/${identifier}.blueprint"
|
||||||
|
|
||||||
# Set output if needed
|
# Set output if needed
|
||||||
echo "blueprint_file=${identifier}.blueprint" >> $GITHUB_OUTPUT
|
echo "blueprint_file=${identifier}.blueprint" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
Reference in New Issue
Block a user