Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
anchor

GitHub Action

Get Latest Release

v0.2.0

Get Latest Release

anchor

Get Latest Release

Get the latest release from another repository and output that for use in other actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Get Latest Release

uses: pozetroninc/[email protected]

Learn more about this action in pozetroninc/github-action-get-latest-release

Choose a version

Get Latest Release

A simple Github action to get the latest release from another repository.

Configuration

Example Repository - https://github.com/pozetroninc/github-action-get-latest-release

owner: The Github user or organization that owns the repository. e.g. pozetroninc

repo: The repository name. e.g. github-action-get-latest-release

Usage Example

name: Build Docker Images
on: [push, repository_dispatch]

jobs:
  build:
    name: RedisTimeSeries
    runs-on: ubuntu-latest
    steps:
      - id: keydb
        uses: pozetroninc/github-action-get-latest-release@master
        with:
            owner: JohnSully
            repo: KeyDB
      - id: timeseries
        uses: pozetroninc/github-action-get-latest-release@master
        with:
            owner: RedisTimeSeries
            repo: RedisTimeSeries
      - uses: actions/checkout@v2
      - uses: docker/build-push-action@v1
        with:
          username: ${{ secrets.DOCKER_USERNAME }}
          password: ${{ secrets.DOCKER_PASSWORD }}
          repository: pozetroninc/keydb-timeseries
          dockerfile: timeseries.dockerfile
          build_args: KEY_DB_VERSION=${{ steps.keydb.outputs.release }}, REDIS_TIME_SERIES_VERSION=${{ steps.timeseries.outputs.release }}
          tags: latest, ${{ steps.keydb.outputs.release }}_${{ steps.timeseries.outputs.release }}