wflow icon indicating copy to clipboard operation
wflow copied to clipboard

Add support for plugin actions

Open chrahunt opened this issue 6 years ago • 9 comments

See actions/checkout. This currently fails because we're looking for a Dockerfile in the cloned action.

chrahunt avatar Sep 22 '19 17:09 chrahunt

Currently, only the checkout action is supported, well, sort of ;-) https://github.com/phishy/wflow/commit/43e5f768abe932d91f2a578f8a76998a4e03e9eb

phishy avatar Sep 22 '19 20:09 phishy

Made some progress here on the checkout plugin. https://github.com/phishy/wflow/blob/master/plugins/checkout/index.js

@chrahunt What other plugins are you aware of / interest you?

phishy avatar Sep 24 '19 12:09 phishy

actions/upload-artifact and actions/download-artifact are the only others I know of. A search of the actions org only shows these three.

We may be able to confirm it from the runner source, but I don't know if that's available.

chrahunt avatar Sep 25 '19 01:09 chrahunt

+1 for this functionality. Would love to see actions/setup-python and actions/setup-node. Also, looking at the org, I see 42 repos that would benefit from this.

JackWilb avatar Sep 26 '19 19:09 JackWilb

Technically those aren't plugins, they're JavaScript actions, and there's another ticket for it here. Relevant code modification point would be here. Let's do it! ;-)

phishy avatar Sep 26 '19 19:09 phishy

I wasn't aware of the distinction, I'll have to look into it :)

JackWilb avatar Sep 26 '19 19:09 JackWilb

👋 hey guys, not sure if this is separate or not but trying to run this and I get stuck at

✖  error     git clone https://github.com/Borales/actions-yarn.git 

I'm guessing, when it hits:

    runs-on: ubuntu-latest
    if: "! contains(github.event.head_commit.message, '[skip ci]')"
    steps:
      - uses: actions/checkout@v1
      - uses: Borales/actions-yarn@master
      - run: yarn
      - run: yarn test

Am I barking up the wrong tree/issue or am I doing something wrong?

markkelsall avatar Dec 02 '19 21:12 markkelsall

@markkelsall This is pretty alpha software, and I haven't been giving it as much love lately as I'd like. I wouldn't waste too much time on it right now, there could be a number of things wrong including authentication troubles.

phishy avatar Dec 02 '19 21:12 phishy

@phishy ok, cheers for the quick reply. Really looking for something to test this locally as it would save so much time...and tiny commits!

markkelsall avatar Dec 02 '19 21:12 markkelsall