We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07abd8d commit a3e0f0bCopy full SHA for a3e0f0b
1 file changed
.github/workflows/install-oasis.yml
@@ -0,0 +1,30 @@
1
+name: install-oasis
2
+on:
3
+ workflow_call:
4
+ inputs:
5
+ release_tag:
6
+ required: false
7
+ type: string
8
+ # A push occurs to one of the matched branches.
9
+ push:
10
+ branches:
11
+ - master
12
+ - stable/*
13
+ # Or when a pull request event occurs for a pull request against one of the
14
+ # matched branches.
15
+ pull_request:
16
17
18
19
+jobs:
20
+ install:
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - name: Install Oasis CLI (latest or pinned)
24
+ run: |
25
+ TAG="${{ inputs.release_tag }}"
26
+ echo "Input length: ${#TAG}"
27
+ API="https://api.github.com/repos/oasisprotocol/cli/releases/${TAG:+tags/}${TAG:-latest}"
28
+ # ...same download logic...
29
+ - name: Expose PATH
30
+ run: echo "$PWD" >> "$GITHUB_PATH"
0 commit comments