pozetroninc / github-action-get-latest-release Goto Github PK
View Code? Open in Web Editor NEWA Github action to get the latest release from another repository.
License: MIT License
A Github action to get the latest release from another repository.
License: MIT License
Hello
I am trying to use this, but I am getting an error "Not Found".
I am using it like this:
The repo in question has at least two releases created (manually). So I am not sure what is not able to find.
Thanks
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!
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
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
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.
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?
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.
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
According to https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/, set-output
has been deprecated and @actions/core
should be updated to at least v1.10.0
to use the new behaviour.
Would it be possible to upgrade? It looks like this action might otherwise stop working at the end of May 2023.
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'
I try to use this action to get latest draft release but it shown only latest release.
I can't use this against a private repo since all API calls to private repos require a token.
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.
if I use excludes: draft
everything seems to filter as expected as seen here, so maybe something wrong with loop logic?
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.
Thanks for the project.
It is not very aesthetically pleasing to see everything use the format
repository: foo/bar
except this one which uses
owner: foo
repo: bar
โ why?
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.
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"
Looks like this release https://github.com/pozetroninc/github-action-get-latest-release/releases/tag/v0.6.0
Is not on the marketplace. Might need to edit it and tick the box to add to marketplace.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.