Git Product home page Git Product logo

Comments (10)

chrispat avatar chrispat commented on June 5, 2024 3

At somepoint in the future we may support this but it is not on our near term backlog.

from toolkit.

damccorm avatar damccorm commented on June 5, 2024 2

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.

damirstuhec avatar damirstuhec commented on June 5, 2024 1

+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.

damccorm avatar damccorm commented on June 5, 2024 1

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.

damccorm avatar damccorm commented on June 5, 2024 1

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.

felipefrocha avatar felipefrocha commented on June 5, 2024 1

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.

damirstuhec avatar damirstuhec commented on June 5, 2024

@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.

damirstuhec avatar damirstuhec commented on June 5, 2024

That was it! Thank you @damccorm.

from toolkit.

damirstuhec avatar damirstuhec commented on June 5, 2024

Is there a plan to support this in the future?

from toolkit.

danechitoaie avatar danechitoaie commented on June 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.