Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get files from repo calling action in docker-action/entrypoint.sh? #2

Open
programmingwithalex opened this issue Oct 18, 2021 · 0 comments

Comments

@programmingwithalex
Copy link

First off, thanks for making this repo.

I have a custom GitHub Action I've written as well with python as the base image in the Docker container but want the version to be an input for the GitHub Action so I am following your same folder structure.

The problem I'm running into is I don't have access to the original repo's files that is calling the GitHub Action. For example, say the repo is called python-sample-project and has folder structure:

python-sample-project
│   main.py
│   file1.py    
│
└───folder1
│   │   file2.py

I see main.py, file1.py, and folder1/file2.py in entrypoint.sh. However, in docker-action/entrypoint.sh I only see the linux folder structure and the entrypoint.sh file copied over in docker-action/Dockerfile with:

COPY entrypoint.sh /entrypoint.sh

Do you know how to access the main.py, file1.py, and folder1/file2.py in entrypoint.sh in the docker-action/entrypoint.sh?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant