Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way to fetch the latest version of some artifact #52

Open
pigeondev2 opened this issue Feb 6, 2020 · 12 comments
Open

Way to fetch the latest version of some artifact #52

pigeondev2 opened this issue Feb 6, 2020 · 12 comments
Labels
enhancement New feature or request

Comments

@pigeondev2
Copy link

@JayFoxRox This issue was tracking a way to get a link to an uploaded artifact. If you want some way to fetch the latest artifact, please file a new issue.
#27 (comment)

Hey there! I am opening a new issue as requested by @joshmgross. It would be incredibly helpful to have some way to fetch the latest version of an artifact.

For example, in my use case, I am using LaTeX for my resume and GitHub Actions to compile and create the PDF. It would be incredibly helpful to have a URL that fetches the most recent version. As mentioned in that thread, there is a workaround by pushing it to a release, which I will be using in the meantime but this would be a much more elegant solution.

Thanks!

@FlorianFranzen
Copy link

An artifact is not a release and should not be used as such, as it is strongly bound to the context of the workflow in which it was produced.

For releases GitHub offers "Releases" and/or "Packages", depending on your needs. Both have their own actions and I think you will have a much easier time publish your pdf file that way.

@Margen67
Copy link

An artifact is not a release and should not be used as such, as it is strongly bound to the context of the workflow in which it was produced.

For releases GitHub offers "Releases" and/or "Packages", depending on your needs. Both have their own actions and I think you will have a much easier time publish your pdf file that way.

Releases require tags, which can become messy. If AppVeyor can provide this basic feature I don't see why GitHub Actions can't.

@dbabokin
Copy link

dbabokin commented Aug 2, 2020

We (ispc project) need a link to the latest build on our README page. It seems to be pretty common usage pattern. This feature is the main reason we keep using Appveyor.

Would be good if upload-artifact, would support aliases like this:

    - name: Upload package
      uses: actions/upload-artifact@v2
      with:
        name: my_build
        job_alias: latest                  <-- note this
        path: my_build.tar.xz

So the result would be available as https://github.com/user/repo/suites/latest/artifacts/my_build.tar.xz. It would also require changing file name in this link from a numeric (like it's now something like 12877777) to my_build.tar.xz or my_build.zip, but I hope it's not that hard to implement.

@JayFoxRox
Copy link

JayFoxRox commented Aug 2, 2020

Even if job_alias worked, you'd be blocked by #51 - the README link would only work for logged in GitHub users (which is not suitable for most public projects).
Also if each job created an alias like that, it would likely need some UI to manage existing aliases (that you amass over time). So I feel like it should be implemented differently.

@dbabokin
Copy link

dbabokin commented Aug 3, 2020

@JayFoxRox Thanks for point out to #51.
I agree, implementation will be more complex than it appears.
But the use case for downloading the latest (or latest successful) build artifact is very widespread use case. I hope Github Actions team will consider it important enough to support it one or other way.

@xaviripo
Copy link

xaviripo commented Feb 4, 2021

Any updates on this?

@KOLANICH
Copy link

KOLANICH commented Feb 4, 2021

You may want to look at nightly.link source code.

@sarcasticadmin
Copy link

Any context for why this was closed @noisypigeon ?

@pigeondev2
Copy link
Author

Oops, I was doing a clean up of old issues and didn't mean to close this one. Thanks for pointing it out.

@pigeondev2 pigeondev2 reopened this Nov 13, 2021
@Mhowser
Copy link

Mhowser commented Nov 13, 2021

@noisypigeon any chance you can pin this?

@pigeondev2
Copy link
Author

I am not an admin/github employee, just a user. :)

@tknobi
Copy link

tknobi commented Jul 1, 2022

Workaround: baz-ga/Edirom-Online#8 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests