-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
35 lines (35 loc) · 970 Bytes
/
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
name: 'hostwithquantum/setup-quantum-cli'
description: 'Setup the quantum-cli on GitHub Actions'
branding:
icon: 'zap'
color: 'red'
inputs:
username:
required: true
description: username
password:
required: true
description: password
version:
required: true
description: version
default: '2.8.4'
runs:
using: "composite"
steps:
- name: install quantum-cli
run: |
curl \
-H 'Cache-Control: no-cache' \
"https://cli.planetary-quantum.com/quantum-cli-linux-amd64?v=${{ inputs.version }}" \
-o ${{ github.action_path }}/quantum-cli \
&& chmod +x ${{ github.action_path }}/quantum-cli
shell: bash
- run: echo "${{ github.action_path }}" >> $GITHUB_PATH
shell: bash
- run: quantum-cli -v
shell: bash
- run: echo "QUANTUM_USER=${{ inputs.username }}" >> "$GITHUB_ENV"
shell: bash
- run: echo "QUANTUM_PASSWORD=${{ inputs.password }}" >> "$GITHUB_ENV"
shell: bash