-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
29 lines (29 loc) · 969 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
name: Setup SATySFi environment
description: Setup SATySFi environment
author: amutake
inputs:
satysfi-version:
description: SATySFi version
required: true
# TODO: use latest version after releasing SATySFi v0.1.0
# currently, this action only supports below version
default: branch-dev-0-1-0-separate-saphe-from-satysfi
runs:
using: composite
steps:
- if: ${{ runner.os != 'Linux' }}
run: |
echo "This action only supports Linux."
exit 1
shell: bash
- name: Extract SATySFi environment from container
run: |
container_id=$(docker create amutake/satysfi:${{ inputs.satysfi-version }})
docker cp ${container_id}:/usr/local/bin/satysfi /usr/local/bin/satysfi
docker cp ${container_id}:/usr/local/bin/saphe /usr/local/bin/saphe
docker cp ${container_id}:/root/.saphe ${HOME}/.saphe
docker rm ${container_id}
shell: bash
branding:
icon: book
color: white