Code Monkey home page Code Monkey logo

Comments (22)

mastoj avatar mastoj commented on June 27, 2024 9

This is so cool, but I do have a related question. How do you access the artifact programmatically? I can't see it as part of the check-run. I have another action where I would like to access the artifact from a specific run based on the git sha. The reason be is that we are using chat ops, so we want to build it on check-in, and then access the artifact when we say that we want to deploy a specific branch.

from upload-artifact.

bokuweb avatar bokuweb commented on June 27, 2024 8

Is there a way to get Artifact URL from a program? Or are you planning to publish the API?

from upload-artifact.

lannonbr avatar lannonbr commented on June 27, 2024 6

In the top right corner of a workflow run, once the run is over, if you used this action, there will be a Artifacts dropdown which you can download items from. Here's a screenshot of what it looks like

Upload example

from upload-artifact.

mastoj avatar mastoj commented on June 27, 2024 5

Seems like it doesn't work to download between workflows :(, so back at square 1.

from upload-artifact.

TingluoHuang avatar TingluoHuang commented on June 27, 2024 2

thanks @warrenbuckley

from upload-artifact.

mastoj avatar mastoj commented on June 27, 2024 1

@os6sense, haven't seen that. Does that works between different workflows? Have to try I guess.

from upload-artifact.

TingluoHuang avatar TingluoHuang commented on June 27, 2024 1

@mastoj we don't support download artifact from a different check-run yet, it's on our backlog.

from upload-artifact.

TingluoHuang avatar TingluoHuang commented on June 27, 2024

it's uploaded to GitHub server as @lannonbr point out in the screenshot

from upload-artifact.

mastoj avatar mastoj commented on June 27, 2024

@TingluoHuang maybe you can answer ⬆️ ?

from upload-artifact.

mastoj avatar mastoj commented on June 27, 2024

What I've done so far is GET on the check-suites but that doesn't give me any information on where the artifacts are.

from upload-artifact.

os6sense avatar os6sense commented on June 27, 2024

@mastoj I'm assuming we use the associated https://github.com/actions/download-artifact project but it would be nice to have more detail :)

from upload-artifact.

warrenbuckley avatar warrenbuckley commented on June 27, 2024

In the top right corner of a workflow run, once the run is over, if you used this action, there will be a Artifacts dropdown which you can download items from. Here's a screenshot of what it looks like

Upload example

Can I suggest the readme.md is updated with this info as its a bit sparse, as I had no clue what this done or what or where the file was going to upload to please :)

from upload-artifact.

TingluoHuang avatar TingluoHuang commented on June 27, 2024

@warrenbuckley we accept PR. 😄

from upload-artifact.

warrenbuckley avatar warrenbuckley commented on June 27, 2024

@TingluoHuang here you go - #4 😄

from upload-artifact.

thecotne avatar thecotne commented on June 27, 2024

i am testing this here https://github.com/Girchi/girchi-com-frontend/commit/3339c23fec76fc62aa8baf7618d6264eade05ccb/checks

it seems to have uploaded successfully but i don't see download link anywhere...

this is what i see:

Screenshot 2019-09-12 15 41 22

from upload-artifact.

gschier avatar gschier commented on June 27, 2024

I was confused by this as well. Looks like it only shows on this view for some reason: https://github.com/Girchi/girchi-com-frontend/pull/2/checks

I'm uploading on a Release trigger (not a PR) so I'm not able to see the uploads as far as I can tell. It would be AWESOME if the uploads when directly onto the release that triggered the action.

from upload-artifact.

teohhanhui avatar teohhanhui commented on June 27, 2024

Unfortunately, I can't seem to find the "Artifacts" dropdown, no matter which view I access the check run from.

EDIT: Looks like we're running into this bug: https://github.community/t5/GitHub-Actions/Passing-builds-not-completing/m-p/34968

from upload-artifact.

joshmgross avatar joshmgross commented on June 27, 2024

👋 Hi all, sorry for the lack of response to this issue.

Where does the upload go to?

As answered above, artifacts will appear in the top-right when looking at a workflow run. Note that a run must be completed before artifacts show up.

How do you access the artifact programmatically?

Is there a way to get Artifact URL from a program? Or are you planning to publish the API?

You can access artifacts via the Actions API, see https://developer.github.com/v3/actions/artifacts/
Just note that the download URL will be short-lived (~a few minutes at most) and allow anonymous access for that time period.

Please let me know if there are any more questions.

from upload-artifact.

ZacSweers avatar ZacSweers commented on June 27, 2024

@joshmgross would it be possible to make that url available to subsequent actions somehow?

from upload-artifact.

teohhanhui avatar teohhanhui commented on June 27, 2024

@ZacSweers That's actions/download-artifact#3

from upload-artifact.

ZacSweers avatar ZacSweers commented on June 27, 2024

@teohhanhui I don't see any actual answers in that thread. It seems like starting with having some sort of accessible reference to the previously uploaded artifact on this action would be a good start.

from upload-artifact.

joshmgross avatar joshmgross commented on June 27, 2024

@ZacSweers I believe @teohhanhui meant that actions/download-artifact#3 is tracking that feature.

Going to close out this issue, please open issues if you have any further questions (this will make it easier for others to find those questions and answers)

from upload-artifact.

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.