Skip to content

abatilo/release-info-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

release-info-action

Actions Status Latest release License

A GitHub Action which fetches information about GitHub releases for you to use.

Inputs:

Name Description Required?
owner The user or org for this repo true
repo The name of the repo itself true

Outputs:

Name Description
latest_tag The latest release version tag
latest_tag_published_at The ISO8601 timestamp of when this version was released
target_commitish Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA.

Example step

- name: Get Latest Release
  id: latest_version
  uses: abatilo/release-info-action@v1.3.0
  with:
    owner: abatilo
    repo: release-info-action

No other setup is required to use this action.

Example Workflow

on: push

name: Example
jobs:
  latest-version:
    name: Get Latest Release
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - name: Get Latest Release
        id: latest_version
        uses: abatilo/release-info-action@v1.3.3
        with:
          owner: abatilo
          repo: release-info-action
      - name: Example of consumption of the output
        env:
          LATEST: ${{ steps.latest_version.outputs.latest_tag }}
          LATEST_DATE: ${{ steps.latest_version.outputs.latest_tag_published_at }}
        run: |
          echo "Version $LATEST was released at $LATEST_DATE"

You can see an example of the invocation of this workflow by clicking here

About

Get the latest release of some GitHub repository

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors