Skip to content

Github Action that able to get the release version of the remote repository in your Actions workflow

License

Notifications You must be signed in to change notification settings

rumblefishdev/get-release-tag-gh-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Actions: Get Github release

This Action able to get latest release version (tag) of the monorepo package.

Configuration

Inputs

| Name | Description | Example | | ---------- | ------------------------------------------------------------ | ----------------------------- | ------ | -------- | -------- | | repository | The Github owner/repository | nodejs/node | | type | The release type (prerelease | stable | latest | nodraft) | stable | | token | Github auth token (default variable for each action session) | ${{ secrets.GITHUB_TOKEN }} | | package | monorepo package name |

Possible values for type input

  • 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

Outputs

Action outputs 3 variables

  • release - release tag
  • release_id - release Github ID
  • browser_download_url - URL to download first file in release assets

Usage example

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
      env:
        token: ${{ secrets.GITHUB_TOKEN }}
        repository: "nodejs/node"
        type: "stable"
        package: "@organization/user-service"

    - name: Build image
      uses: docker/build-push-action@v1
        with:
          ...
          dockerfile: Dockerfile
          tags: latest, ${{ steps.node_release.outputs.release }}

About

Github Action that able to get the release version of the remote repository in your Actions workflow

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 87.4%
  • Dockerfile 12.6%