Git Product home page Git Product logo

Comments (7)

neil-pozetroninc avatar neil-pozetroninc commented on June 28, 2024 1

Hey @LongLiveCHIEF, that sounds like a super useful idea!

If I understand correctly though, it would mean that get-latest-release would no longer only be returning the one and only latest release. If we go ahead with this idea I would like to propose that we fork this action and create another sibling action which would get "releases".

I'll then port the semver functionality to this action so that this action gets the latest single release that matches the semver and point people in the README to the sibling action for getting a list of releases if that's their use case.

Does that sound like a good idea?

from github-action-get-latest-release.

LongLiveCHIEF avatar LongLiveCHIEF commented on June 28, 2024 1

from github-action-get-latest-release.

LongLiveCHIEF avatar LongLiveCHIEF commented on June 28, 2024

I'm willing to help by contributing this feature if you like the idea. I was actually going to create this "get release" action, and figured I'd search the marketplace first. Ironically, @foosel is a contributor to this action, and she's the maintainer of the product I'm supporting docker images for!

I also recently released the HackerHappyHour/tagging-strategy action, which would pair with this nicely using the output. It's possible we could even create a compound action to get matching releases and create a matrix of tags.

from github-action-get-latest-release.

LongLiveCHIEF avatar LongLiveCHIEF commented on June 28, 2024

Here's what I'm thinking this could look like: (see example of creating a matrix in one job and passing it to another from github actions docs

jobs:
  releases:
    outputs:
      matrix: ${{ steps.releases.outputs.matrix }}
    steps:
      # produces a matrix with a key of `matrix`
      - name: Get Releases
         id: releases
         uses: pozetroninc/github-action-get-latest-release
          with: 
            repository: some/repository
            semver: '^1.0.0'
  build:
    needs: releases
    strategy: 
      matrix: ${{ needs.releases.outputs.matrix }}

from github-action-get-latest-release.

LongLiveCHIEF avatar LongLiveCHIEF commented on June 28, 2024

related #5

from github-action-get-latest-release.

LongLiveCHIEF avatar LongLiveCHIEF commented on June 28, 2024

I had the same thought, just didn't want to preempt you.

from github-action-get-latest-release.

dannysauer avatar dannysauer commented on June 28, 2024

Did the fork happen, or did everyone fall down a well? :)

from github-action-get-latest-release.

Related Issues (19)

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.