Get latest Github release
ActionsGet the latest release from another repository and output that for use in other actions
v2.0
LatestBy rez0n
This Action able to get latest release version (tag) of the remote repository.
Name | Description | Example |
---|---|---|
repository | The Github owner/repository | nodejs/node |
type | The release type (prerelease | stable |
token | Github auth token (default variable for each action session) | ${{ secrets.GITHUB_TOKEN }} |
- stable - Get the stable
latest
release - prerelease - Get the latest
prerelease
- latest - Get the really latest release with no matter is it stable or prerelease
- nodraft - Get the really latest release excluding drafts
Action outputs 3 variables
release
- release tagrelease_id
- release Github IDbrowser_download_url
- URL to download first file in release assets
on:
push:
branches: [ main ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Get latest release of NodeJS
uses: rez0n/actions-github-release@main
id: node_release
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: "nodejs/node"
type: "stable"
- name: Build image
uses: docker/build-push-action@v1
with:
...
dockerfile: Dockerfile
tags: latest, ${{ steps.node_release.outputs.release }}
Get latest Github release is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.
About
v2.0
LatestBy rez0n
Get latest Github release is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.