Skip to content

Latest commit

 

History

History

upstream-builds-query

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Upstream Builds Query Action

build test

Usage

- uses: keep-network/ci/actions/upstream-builds-query@v1
  id: upstream-builds-query
  with:
    upstream-builds: ${{ github.event.inputs.upstream_builds }}
    fail-on-empty: false # default: true
    query: |
        keep-core-contracts-version = github.com/keep-network/keep-core/solidity#version
        tbtc-contracts-version = github.com/keep-network/tbtc/solidity#version

Outputs

The action outputs property with a value of the resolved package version.

Example usage:

- uses: keep-network/ci/actions/upstream-builds-query@v1
  id: upstream-builds-query
  with:
    upstream-builds: ${{ github.event.inputs.upstream_builds }}
    query: |
        keep-core-contracts-version = github.com/keep-network/keep-core/solidity#version
        tbtc-contracts-version = github.com/keep-network/tbtc/solidity#version
- name: Print resolved version
  run: |
    echo "Resolved version: ${{ steps.upstream-builds-query.outputs.keep-core-contracts-version }}"
    echo "Resolved version: ${{ steps.upstream-builds-query.outputs.tbtc-contracts-version }}"