How to configure for side-by-side checkouts and an environment variable? #1174
Unanswered
fuhrmanator
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm using a side-by-side check-out (where the second repo is a tool I run in my CI).
I want to deploy a folder that's in only one of the repos, e.g.
main/$SOURCE_ROOT
, but I can't get it to work.I set the
folder:
to be just.
as a basic trial, and I get an error that seems to imply the action is totally confused about the path.Here's a real example: https://github.com/fuhrmanator/Head-First-Design-Patterns/runs/7502602445?check_suite_focus=true
Head-First-Design-Patterns
is being repeated. The true path ismain/Head-First-Design-Patterns
(because of how I installed it with checkout's side-by-side).Passing in environment variables tofolder:
, e.g.,$GITHUB_WORKSPACE/main/$SOURCE_ROOT
doesn't seem to work. They aren't substituted (the error says something like$GITHUB_WORKSPACE/main/$SOURCE_ROOT does not exist
.My apologies if this is something obvious - I'm new to Actions.
ETA:
Getting closer. According to the doc adding a
~
to the end will make it an absolute path. So, I tried:The error is still in the folder path:
If I remove the
~
, the action is confused because it doesn't think it's a git repo:It seems the action doesn't like the idea of side-by-side repos.
Beta Was this translation helpful? Give feedback.
All reactions