-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
36 lines (33 loc) · 1.01 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
name: setup-bob
description: Setup GitHub CLI, bob, on GitHub Actions runners
inputs:
github-token:
description: "GitHub token to access the bob release."
required: true
tag:
description: "Release tag of bob CLI to install; install the latest release by default"
required: false
# empty for the latest release
default: ''
outputs:
installed_version:
description: "The installed version as reported by the tool"
value: ${{ steps.capture.outputs.installed_version }}
runs:
using: composite
steps:
- name: Fetch release artifact
uses: jaxxstorm/action-install-gh-release@v1.12.0
with:
repo: hashicorp/bob
tag: ${{ inputs.tag }}
token: ${{ inputs.github-token }}
cache: false
- name: Capture installed version
id: capture
shell: bash
run: |
bob -version | tee .version_check
echo "installed_version=$(< .version_check)" >> "$GITHUB_OUTPUT"