ci: cd into live/ for railway up (runner treats path args as repo-root context)
This commit is contained in:
1 parent
60fd78e18e
commit
8cf6ef30ea
1 file changed
+3
-2
@@ -25,9 +25,10 @@ jobs:
|
|||||||
# GITHUB_EVENT_BEFORE is empty on some push events; treat that as
|
# GITHUB_EVENT_BEFORE is empty on some push events; treat that as
|
||||||
# "deploy" rather than erroring on a bad revision
|
# "deploy" rather than erroring on a bad revision
|
||||||
if [ -z "$GITHUB_EVENT_BEFORE" ] || ! git diff --quiet "$GITHUB_EVENT_BEFORE" "$GITHUB_SHA" -- live/ 2>/dev/null; then
|
if [ -z "$GITHUB_EVENT_BEFORE" ] || ! git diff --quiet "$GITHUB_EVENT_BEFORE" "$GITHUB_SHA" -- live/ 2>/dev/null; then
|
||||||
npx -y @railway/cli@latest up --project 11f1d169-3b88-40e7-a054-f4b79e89c138 \
|
cd "$GITHUB_WORKSPACE/live" && npx -y @railway/cli@latest up \
|
||||||
|
--project 11f1d169-3b88-40e7-a054-f4b79e89c138 \
|
||||||
--environment e1abb91d-1146-4601-aabf-cfb9a8eef2b2 \
|
--environment e1abb91d-1146-4601-aabf-cfb9a8eef2b2 \
|
||||||
--service saw --detach "$GITHUB_WORKSPACE/live"
|
--service saw --detach "$(pwd)"
|
||||||
else
|
else
|
||||||
echo "live/ unchanged - skip"
|
echo "live/ unchanged - skip"
|
||||||
fi
|
fi
|
||||||
Reference in new issue
Block a user