Skip to content

ci: Add oasis-install #4

ci: Add oasis-install

ci: Add oasis-install #4

Workflow file for this run

name: install-oasis
on:
workflow_call:
inputs:
release_tag:
required: false
type: string
# A push occurs to one of the matched branches.
push:
branches:
- master
- stable/*
# Or when a pull request event occurs for a pull request against one of the
# matched branches.
pull_request:
branches:
- master
- stable/*
jobs:
install:
runs-on: ubuntu-latest
steps:
- name: Install Oasis CLI (latest or pinned)
run: |
TAG="${{ inputs.release_tag }}"
echo "Input length: ${#TAG}"
API="https://api.github.com/repos/oasisprotocol/cli/releases/${TAG:+tags/}${TAG:-latest}"
# ...same download logic...
- name: Debug inputs
run: |
echo "Raw input: '${{ inputs.release_tag }}'"
echo "Input length: ${#TAG}"
TAG="${{ inputs.release_tag }}"
if [ -z "$TAG" ]; then
echo "TAG is empty or unset"
else
echo "TAG is set to: '$TAG'"
fi
- name: Expose PATH
run: echo "$PWD" >> "$GITHUB_PATH"