GithHub CI with React: Push to another repo #24298
-
I’ve set a GitHub action that make a build of my React application. I need that build to be pushed to another repo that I’m using to keep track of the builds. This is the action that is actually running:
By the way when the action run the copy job it fails with the following message:
What am I doing wrong? Note that when the react-build scripts start, this is the directory it is running from:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
It looks like you’re trying to copy files created by the Depending on what fits your needs better, you could either:
|
Beta Was this translation helpful? Give feedback.
-
Thanks airtower-luna for your answer. I’ve updated the action to this:
Note the added “ls” command that is giving this output:
By the way the copy command still fails. Any idea? |
Beta Was this translation helpful? Give feedback.
-
Not really, except that |
Beta Was this translation helpful? Give feedback.
-
Thanks airtower, usign another copy action solved the issue:
Anyway I’m marking your previous answer as accepted because you clarified that each job has its own runner and an empty file system and since I was using two different jobs the problem was also related to that. Thanks for your support. |
Beta Was this translation helpful? Give feedback.
It looks like you’re trying to copy files created by the
build
job in thecopy
job. That won’t work, each job gets a fresh runner with an empty file system.Depending on what fits your needs better, you could either: