Git Product home page Git Product logo

github-action-get-latest-release's People

Contributors

baywet avatar dependabot[bot] avatar foosel avatar github-actions[bot] avatar justincy avatar longlivechief avatar neil-pozetroninc avatar sdepold avatar shawaj avatar syzhakov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

github-action-get-latest-release's Issues

error: Not found

Hello

I am trying to use this, but I am getting an error "Not Found".

I am using it like this:

  • name: Get Last Release Id
    id: latest-release
    uses: pozetroninc/github-action-get-latest-release@master
    with:
    repository: ${{ github.repository }}
    excludes: prerelease, draft

The repo in question has at least two releases created (manually). So I am not sure what is not able to find.

Thanks

Inputs missing

I'm using your action in my workflow like so:

jobs: 
  x: 
    steps: 
      - name: "Read latest release version"
        id: read-latest-release-version
        uses: pozetroninc/github-action-get-latest-release@master
        with:
            repository: ${{ github.repository }}

and I receive the following error:

##[warning]Unexpected input 'repository', valid inputs are ['']
Run pozetroninc/github-action-get-latest-release@master
  with:
    repository: rarusel/terra-snellman
##[error]Cannot read property 'tag_name' of undefined

I don't know much about actions/workflows yet, but this seems consistent with the fact that your action.yaml does not list any input parameters.
If this is indeed the source of my problem, would you mind fixing it?
If not, do you have any recommendations why else I might be getting this error?
Thanks!

Error when latest release goes to second page

Hi, Thank you for this very useful action.
Seems when latest stable release goest to the second page, action does not see them.

My configuration

      - id: NodeBB-stable
        uses: pozetroninc/github-action-get-latest-release@master
        with:
            owner: NodeBB
            repo: NodeBB
            excludes: prerelease, draft

But this works good.

      - id: NodeBB-beta
        uses: pozetroninc/github-action-get-latest-release@master
        with:
            owner: NodeBB
            repo: NodeBB

Link to the releases page https://github.com/NodeBB/NodeBB/releases
3 days ago I have successful builds

update node version

github shows warning when running actions:

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pozetroninc/github-action-get-latest-release@master

Unable to use output in other action

I am trying to set up a workflow where a version number is updated in a toml file. The relevant setup is as follows:

    steps:
      - id: gohugohugo
        uses: pozetroninc/github-action-get-latest-release@master
        with:
          owner: gohugoio
          repo: hugo
          excludes: prerelease, draft
      - uses: actions/checkout@v2
      - uses: ciiiii/[email protected]
        with:
          file: netlify.toml
          key: context.production.environment.HUGO_VERSION
          value: ${{ steps.gohugohugo.outputs.release }}

I can confirm, that the setup of toml-editor catches the proper file (on the first try it added some indentation to the file) but it does not add the proper new version number from the gohugo repo, but just replaces the current version. Is it possible that subsequent actions have no access to step.id.outputs or do I overlook something?

I tried adding the output with "${{ steps.gohugohugo.outputs.release }}" with the same result.

The full action setup is at https://github.com/davidsneighbour/kollitsch.de/blob/main/.github/workflows/update-netlify.yml

I set the action runner to debugging and it echoed:

 ::set-output name=release::v0.89.4

which is the right latest version, but running the action leaves the version at 0.88.1.

How to pass GitHub API token

In my GitHub Action run here, I have an error Error: API rate limit exceeded for 207.254.3.33. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.) Is there any way to pass a GitHub API token via environment variable?

Get latest stable

Hi, thanks for the action.
Would be great if it was possible to get latest stable release, because some projects have a lot of beta releases at the top.

Release description

Hi,

We are using your action to check if one of our dependencies has a new release, and if it does we open a PR that updates our dependency. One thing that we are missing that we would love to have is the release description so that we can add it to our PR, would you be ok if I created a PR to add the description of the release in the outputs?

Thanks

Node.js 12 actions are deprecated

Very useful action.
Thanks for having it!
We are getting an error in our CI.
Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: pozetroninc/github-action-get-latest-release

Could you please update action.yml to use Node 16?

runs: using: 'node16'

draft not excluding

When using excludes: prerelease, draft still getting draft version number returned. An example run can be found here. Not sure if this is related to using tokens or not, but still getting 1.9.3 version that is currently in Draft mode.

image

if I use excludes: draft everything seems to filter as expected as seen here, so maybe something wrong with loop logic?

Allow to limit to prereleases

It'd be nice if you could pass release as an option to the exclude paramter, so that you could preferentially fetch the latest prerelease.

Feature: Get last `n` releases || releases compatible with semver range

Often if you're doing something like building a docker image around a product (for me it's the official octoprint/octoprint image), then you need to not only build an image for the latest release of a product, but several of the previous releases.

It would be great to be able to specify the last n releases, or to specify a semver input and get all tags that match.

Don't return draft release. Is it normal?

The latest release is a draft but is never returned.
I also tried with only a draft and it doesn't return anything. I get the message "No valid releases"

name: Build Docker Images
on: [push]
jobs:
  build:
    name: cloudbot-beta
    runs-on: ubuntu-latest
    steps:
    - id: vars
      uses: pozetroninc/github-action-get-latest-release@master
      with:
          owner: FBoucher
          repo: CloudBot
    - uses: actions/checkout@v2
    - name: Publish to Registry
      uses: elgohr/Publish-Docker-Github-Action@master
      with:
        name: ${{secrets.DOCKER_USER}}/cloudbot
        username: ${{ secrets.DOCKER_USER }}
        password: ${{ secrets.DOCKER_PASSWORD }}
        tags: "latest,${{ steps.vars.outputs.release }}-beta"

Default to current repo

It might be good to default to the current repo (that in which the Action is running) if owner/repo/repository aren't given?

Since they're all optional, I initially assumed that was the behaviour (and then thought 'Error: Not Found' was referring to the action itself..) but I now realise that it's really just to allow the option of splitting owner & repo or not.

As an alternative solution/aside, perhaps it could just be repository, and default to current owner if no /? (Or just owner/repo, and default to current owner.)

Thanks.

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.