Comments (10)
At somepoint in the future we may support this but it is not on our near term backlog.
from toolkit.
You're correct that right now we don't support this yet, @chrispat what are our plans around this?
Note that right now you can reference an action from your own repo via relative paths. This provides some of the functionality private actions would bring (though admittedly not in a reusable way).
So for example, to reference an action that has its action.yml file in {repo root}/my-actions/action1
, you could do the following in your workflow.yml - uses: ./my-actions/action1
from toolkit.
+1 for this. Pretty much every organization has multiple private repositories and being able to reuse in-house actions across those repositories is a must-have, in my opinion.
from toolkit.
One thing that has gotten me before (and may be what you're dealing with here) is that you need to run action/checkout
before the action so that your source code makes it down to the right location.
from toolkit.
Glad I could help! Also added an internal PR to make that error a little more clear/point to checkout so hopefully it can be avoided by others going forward.
from toolkit.
It should support this spetially that we need some private configurations for jobs, and it is useless if I had to make tons of inputs for hardcoded staff like URL etc
from toolkit.
@damccorm I've tried moving our custom action in one of our private repositories as you suggested:
{repo root}/actions/action1/{here is where action.yml, src, lib and other files are}
.
I also updated the uses
in the workflow to uses: ./actions/action1
but I get the following error when the workflow runs:
##[error]Can't find 'action.yml' or 'Dockerfile' under '/home/runner/work/{org}/{repo}/actions/action1'.
Any ideas?
from toolkit.
That was it! Thank you @damccorm.
from toolkit.
Is there a plan to support this in the future?
from toolkit.
That's very disappointing to hear. We were planning to use GitHub actions in favor of Jenkins but since migrating the custom Jenkins plugins to GitHub actions that we were using will mean we'll have to make them public this is a dealbreaker so we'll have to stay on Jenkins from what it seems.
from toolkit.
Related Issues (20)
- `core.summary.addCodeBlock()` sometimes doesn't render Markdown correctly HOT 3
- Avoid calling chmod in cpDirRecursive
- tool-cache downloadTool fails to download file saying "Invalid URL"
- let glob support curly braces like bash
- Huge untreeshakable size increase due to `undici`
- Leaked socket in cache/internal/cacheHttpClient
- scoop install 1password-cli
- Dependencies: Public docs no longer match some API methods HOT 1
- Unix file permissions not stored in zip file HOT 1
- actions/cache assumes zstdmt to be installed HOT 1
- Cannot use `@actions/github` and `@actions/artifact` together
- Tracking
- @actions/artefacts weighs 100mb. this cant be right
- 2024 老牌机场推荐:老牌机场合集
- Bug: `context.job` fails to take into account `jobs.<job_id>.name` value HOT 2
- https://www.facebook.com/nara.istri.jisung
- `continue-on-error` should not return `success` in ` needs_job_result`
- Make uploadZipToBlobStorage() log raw and compressed sizes ?
- Annotations using environment files
- amin 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 toolkit.