Comments (9)
I guess having workdir
in checkout might take some time.
In this way I introduced it here, so that people can already work.
When it's introduced in checkout, it will be deprecated.
See https://github.com/elgohr/Publish-Docker-Github-Action/releases/tag/1.13 and https://github.com/elgohr/Publish-Docker-Github-Action#workdir
from publish-docker-github-action.
Edit: not working, the path argument just create a new directory and put the repository there
You can use the path input in the checkout step
steps:
- uses: actions/checkout@v1
with:
path: your_path
All the steps after that should use that path as the working directory
from publish-docker-github-action.
That is great @elgohr! Thanks for the follow-up and fix π
from publish-docker-github-action.
Thanks @elgohr!
from publish-docker-github-action.
Thank you for the request and fast response
Didn't know about the path in the checkout either. I guess we can close it?
from publish-docker-github-action.
That was quick! Thanks for the response and tip. I tried setting the path, but it seems to only append it to the path context:
/home/runner/work/myrepo/added_in_path
The actual workdir is the same (not sure about the use case for this). I did a pwd
inside the action, and it lists the same content even after the path is set.
I also looked at the working-directory
variable, but that doesn't seem to work with the uses
statement:
Maybe I'm missing something here, but I still cannot see another solution that to pass the path in to the action.
from publish-docker-github-action.
I'm trying to get an answer from Github whether there is a way to contribute to the checkout plugin, as this seems to be the one doing the actual checkout. At my point more actions could benefit from this, when it's in the checkout.
from publish-docker-github-action.
Sounds like a good plan. I agree that this is a feature that more would benefit from. That is why I almost took it for granted. Hence the feeling I'm missing a feature that already exist :)
from publish-docker-github-action.
Hello,
I face the same problem. My Dockerfile is generated in another step after the checkout step. So, the path input
fix doesn't work for my case.
The additions made by @automada makes sense for me. But I think it would be better if we can use the working-directory variable with the uses statement.
from publish-docker-github-action.
Related Issues (20)
- [BUG] tags example in README is deprecated HOT 2
- `tag_semver` does not recognize pre-releases HOT 1
- [BUG] Get https://***:6000/v2/: http: server gave HTTP response to HTTPS client
- [FEATURE] `no_push: true` should not complain about missing credentials HOT 5
- [BUG] Not logged in to https://index.docker.io/v1/ HOT 1
- Action Required: Fix Renovate Configuration HOT 1
- [BUG] Migrating from GitHub Packages Docker registry to GitHub Container Registry HOT 2
- "ca-certificates-20191127-r2: bad archive" error HOT 1
- [FEATURE]
- [FEATURE] Do not overwrite existing images HOT 4
- [BUG] docker:20.10.8 seem to break the test.bats HOT 15
- [BUG] Docker build failed with exit code 1 HOT 1
- [BUG] Example for using tags seems to be broken HOT 2
- Question: Action does not get the tag-information HOT 2
- [BUG] HOT 5
- [BUG] `sed` error when switching to v4 actions and built against tag HOT 8
- tag_semver is ignored for v4 HOT 6
- [BUG] ::set-output deprecated in actions HOT 7
- [BUG] Old tag confuses automated dependency updaters HOT 4
- [BUG] docker:not found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from publish-docker-github-action.